From 510e8b4fa3d1a39ad6a0912d87c80c11eca16e3e Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 28 Aug 2023 13:19:28 +0200 Subject: [PATCH] Disable custom tabs for Brave --- app/src/main/java/eu/faircode/email/FragmentOAuth.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index 83e171179e..b959412660 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -464,6 +464,9 @@ public class FragmentOAuth extends FragmentBase { if (descriptor.useCustomTab && !tabs) accept = false; + if ("com.brave.browser".equals(descriptor.packageName) && Boolean.TRUE.equals(descriptor.useCustomTab)) + accept = false; + EntityLog.log(context, "OAuth browser=" + descriptor.packageName + ":" + descriptor.version +