mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Guess sheme for confirmed host names
This commit is contained in:
@@ -4769,9 +4769,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
return false;
|
||||
|
||||
boolean confirm_links = prefs.getBoolean("confirm_links", true);
|
||||
Uri guri = UriHelper.guessScheme(uri);
|
||||
String scheme = guri.getScheme();
|
||||
String host = guri.getHost();;
|
||||
boolean confirm_link =
|
||||
!"https".equals(uri.getScheme()) || TextUtils.isEmpty(uri.getHost()) ||
|
||||
prefs.getBoolean(uri.getHost() + ".confirm_link", true);
|
||||
!"https".equals(scheme) || TextUtils.isEmpty(host) ||
|
||||
prefs.getBoolean(host + ".confirm_link", true);
|
||||
if (always_confirm || (confirm_links && confirm_link)) {
|
||||
Bundle args = new Bundle();
|
||||
args.putParcelable("uri", uri);
|
||||
|
||||
Reference in New Issue
Block a user