pull/205/head
M66B 4 years ago
parent 810359d9c0
commit b0297fb6c5

@ -930,10 +930,9 @@ public class FragmentAccount extends FragmentBase {
boolean pro = ActivityBilling.isPro(context); boolean pro = ActivityBilling.isPro(context);
boolean should = args.getBoolean("should"); boolean should = args.getBoolean("should");
if (host.contains(":")) { int semi = host.indexOf(':');
Uri h = Uri.parse(host); if (semi > 0 && host.indexOf(':', semi + 1) < 0)
host = h.getHost(); host = host.substring(0, semi);
}
if (TextUtils.isEmpty(host) && !should) if (TextUtils.isEmpty(host) && !should)
throw new IllegalArgumentException(context.getString(R.string.title_no_host)); throw new IllegalArgumentException(context.getString(R.string.title_no_host));

Loading…
Cancel
Save