|
|
@ -301,22 +301,22 @@ public class ThreadLayout extends CoordinatorLayout implements |
|
|
|
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { |
|
|
|
.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onClick(DialogInterface dialog, int which) { |
|
|
|
public void onClick(DialogInterface dialog, int which) { |
|
|
|
if (ChanSettings.openLinkBrowser.get()) { |
|
|
|
openLinkConfirmed(link); |
|
|
|
AndroidUtils.openLink(link); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
AndroidUtils.openLinkInBrowser((Activity) getContext(), link); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.setTitle(R.string.open_link_confirmation) |
|
|
|
.setTitle(R.string.open_link_confirmation) |
|
|
|
.setMessage(link) |
|
|
|
.setMessage(link) |
|
|
|
.show(); |
|
|
|
.show(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (ChanSettings.openLinkBrowser.get()) { |
|
|
|
openLinkConfirmed(link); |
|
|
|
AndroidUtils.openLink(link); |
|
|
|
} |
|
|
|
} else { |
|
|
|
} |
|
|
|
AndroidUtils.openLinkInBrowser((Activity) getContext(), link); |
|
|
|
|
|
|
|
} |
|
|
|
public void openLinkConfirmed(final String link) { |
|
|
|
|
|
|
|
if (ChanSettings.openLinkBrowser.get()) { |
|
|
|
|
|
|
|
AndroidUtils.openLink(link); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
AndroidUtils.openLinkInBrowser((Activity) getContext(), link); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|