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:
parent
35ee9fd306
commit
cb3bb8d289
1 changed files with 3 additions and 1 deletions
|
@ -377,7 +377,9 @@ public class Log {
|
||||||
@Override
|
@Override
|
||||||
public boolean onSession(@NonNull Session session) {
|
public boolean onSession(@NonNull Session session) {
|
||||||
// opt-in
|
// 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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue