pull/212/head
M66B 2 years ago
parent 256ea4ac27
commit 741b38ba8f

@ -5989,7 +5989,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
String chost = FragmentDialogOpenLink.getConfirmHost(uri); String chost = FragmentDialogOpenLink.getConfirmHost(uri);
boolean sanitize_links = prefs.getBoolean("sanitize_links", false); boolean sanitize_links = prefs.getBoolean("sanitize_links", false);
boolean confirm_link = (chost != null && prefs.getBoolean(chost + ".confirm_link", true)); boolean confirm_link = (chost == null || prefs.getBoolean(chost + ".confirm_link", true));
if (always_confirm || sanitize_links || (confirm_links && confirm_link)) { if (always_confirm || sanitize_links || (confirm_links && confirm_link)) {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putParcelable("uri", uri); args.putParcelable("uri", uri);

@ -583,7 +583,7 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
String chost = getConfirmHost(uri); String chost = getConfirmHost(uri);
cbNotAgain.setText(context.getString(R.string.title_no_ask_for_again, chost)); cbNotAgain.setText(context.getString(R.string.title_no_ask_for_again, chost));
cbNotAgain.setVisibility(!always_confirm && chost != null ? View.VISIBLE : View.GONE); cbNotAgain.setVisibility(!always_confirm && !sanitize_links && chost != null ? View.VISIBLE : View.GONE);
setMore(false); setMore(false);

Loading…
Cancel
Save