1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Disable Bugsnag through VPNs (ad blockers)

This commit is contained in:
M66B 2021-05-15 19:17:02 +02:00
parent 35ee9fd306
commit cb3bb8d289

View file

@ -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);
}
});