mirror of https://github.com/M66B/FairEmail.git
Fixed crash on hierarchical URIs
This commit is contained in:
parent
26d6f09c1d
commit
8bb9ef1324
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue