mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Simplification
This commit is contained in:
parent
1d25c39d56
commit
3ffe9a40af
1 changed files with 2 additions and 10 deletions
|
@ -342,16 +342,8 @@ public class UriHelper {
|
||||||
Uri result = getBraveDebounce(context, uri);
|
Uri result = getBraveDebounce(context, uri);
|
||||||
|
|
||||||
if (result == null &&
|
if (result == null &&
|
||||||
uri.getQueryParameter("redirect") != null) {
|
uri.getQueryParameter("redirect") != null)
|
||||||
Uri redirected = Uri.parse(uri.getQueryParameter("redirect"));
|
result = Uri.parse(uri.getQueryParameter("redirect"));
|
||||||
if (redirected != null) {
|
|
||||||
Uri.Builder builder = redirected.buildUpon();
|
|
||||||
for (String key : uri.getQueryParameterNames())
|
|
||||||
if (!"redirect".equals(key))
|
|
||||||
builder.appendQueryParameter(key, uri.getQueryParameter(key));
|
|
||||||
result = builder.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result == null &&
|
if (result == null &&
|
||||||
uri.getQueryParameter("redirectUrl") != null)
|
uri.getQueryParameter("redirectUrl") != null)
|
||||||
|
|
Loading…
Reference in a new issue