Fix host name URIs

This commit is contained in:
M66B
2019-07-15 12:41:51 +02:00
parent 041e293ac1
commit 052ea3964b
2 changed files with 15 additions and 0 deletions

View File

@@ -567,6 +567,11 @@ public class FragmentIdentity extends FragmentBase {
boolean should = args.getBoolean("should");
if (host.contains(":")) {
Uri h = Uri.parse(host);
host = h.getHost();
}
if (!should && TextUtils.isEmpty(name))
throw new IllegalArgumentException(context.getString(R.string.title_no_name));
if (!should && TextUtils.isEmpty(email))