mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Allow disable confirming email addreesses
This commit is contained in:
@@ -5937,10 +5937,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
String scheme = guri.getScheme();
|
||||
String host = guri.getHost();
|
||||
|
||||
String chost = FragmentDialogOpenLink.getConfirmHost(uri);
|
||||
boolean sanitize_links = prefs.getBoolean("sanitize_links", false);
|
||||
boolean confirm_link =
|
||||
!"https".equalsIgnoreCase(scheme) || TextUtils.isEmpty(host) ||
|
||||
prefs.getBoolean(host + ".confirm_link", true);
|
||||
boolean confirm_link = (chost != null && prefs.getBoolean(chost + ".confirm_link", true));
|
||||
if (always_confirm || sanitize_links || (confirm_links && confirm_link)) {
|
||||
Bundle args = new Bundle();
|
||||
args.putParcelable("uri", uri);
|
||||
|
||||
Reference in New Issue
Block a user