From 3ffe9a40af77bd6aea59fa6ef0080ef097683fa3 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Jul 2024 23:26:17 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/UriHelper.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/UriHelper.java b/app/src/main/java/eu/faircode/email/UriHelper.java index 8d4694c09a..600404b318 100644 --- a/app/src/main/java/eu/faircode/email/UriHelper.java +++ b/app/src/main/java/eu/faircode/email/UriHelper.java @@ -342,16 +342,8 @@ public class UriHelper { Uri result = getBraveDebounce(context, uri); if (result == null && - uri.getQueryParameter("redirect") != null) { - Uri redirected = 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(); - } - } + uri.getQueryParameter("redirect") != null) + result = Uri.parse(uri.getQueryParameter("redirect")); if (result == null && uri.getQueryParameter("redirectUrl") != null)