Fixed crash on hierarchical URIs

This commit is contained in:
M66B 2020-05-25 18:00:08 +02:00
parent 26d6f09c1d
commit 8bb9ef1324
1 changed files with 3 additions and 2 deletions

View File

@ -5708,8 +5708,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
!TextUtils.isEmpty(uri.getQueryParameter("url"))) {
changed = true;
url = Uri.parse(uri.getQueryParameter("url"));
if (url.isOpaque())
return uri;
} else if ("https".equals(uri.getScheme()) &&
"www.google.com".equals(uri.getHost()) &&
uri.getPath() != null &&
@ -5737,6 +5735,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else
url = uri;
if (url.isOpaque())
return uri;
builder = url.buildUpon();
builder.clearQuery();