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