mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
parent
ae193df6cc
commit
f7f749cb06
1 changed files with 6 additions and 3 deletions
|
@ -150,9 +150,12 @@ public class FragmentDialogOpenLink extends FragmentDialogBase {
|
|||
else {
|
||||
Uri g = Uri.parse(URLUtil.guessUrl(url));
|
||||
String scheme = g.getScheme();
|
||||
if (scheme == null || "http".equals(scheme))
|
||||
scheme = "https";
|
||||
uri = Uri.parse(scheme + "://" + _uri.toString());
|
||||
if (scheme != null) {
|
||||
if ("http".equals(scheme))
|
||||
scheme = "https";
|
||||
uri = Uri.parse(scheme + "://" + _uri.toString());
|
||||
} else
|
||||
uri = _uri;
|
||||
}
|
||||
} else
|
||||
uri = _uri;
|
||||
|
|
Loading…
Reference in a new issue