diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index a1edb1493c..13a2c9061f 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -73,12 +73,15 @@ public class ApplicationEx extends Application { logMemory("App create version=" + BuildConfig.VERSION_NAME); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); + final boolean crash_reports = prefs.getBoolean("crash_reports", false); + prev = Thread.getDefaultUncaughtExceptionHandler(); Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @Override public void uncaughtException(Thread thread, Throwable ex) { - if (ownFault(ex)) { + if (!crash_reports && ownFault(ex)) { Log.e(ex); if (BuildConfig.BETA_RELEASE ||