mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Twice
This commit is contained in:
parent
810359d9c0
commit
b0297fb6c5
1 changed files with 3 additions and 4 deletions
|
@ -930,10 +930,9 @@ public class FragmentAccount extends FragmentBase {
|
|||
boolean pro = ActivityBilling.isPro(context);
|
||||
boolean should = args.getBoolean("should");
|
||||
|
||||
if (host.contains(":")) {
|
||||
Uri h = Uri.parse(host);
|
||||
host = h.getHost();
|
||||
}
|
||||
int semi = host.indexOf(':');
|
||||
if (semi > 0 && host.indexOf(':', semi + 1) < 0)
|
||||
host = host.substring(0, semi);
|
||||
|
||||
if (TextUtils.isEmpty(host) && !should)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_host));
|
||||
|
|
Loading…
Reference in a new issue