From cb3bb8d2890ce9b83d210baecd84d5004ce6649a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 15 May 2021 19:17:02 +0200 Subject: [PATCH] Disable Bugsnag through VPNs (ad blockers) --- app/src/main/java/eu/faircode/email/Log.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 9151722534..79777ed518 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -377,7 +377,9 @@ public class Log { @Override public boolean onSession(@NonNull Session session) { // opt-in - return prefs.getBoolean("crash_reports", false); + boolean crash_reports = prefs.getBoolean("crash_reports", false); + boolean vpn = ConnectionHelper.vpnActive(context); + return (crash_reports && !vpn); } });