diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index 16584fc18e..5d1e50cab5 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -57,12 +57,12 @@ public class ApplicationEx extends Application { Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @Override public void uncaughtException(Thread thread, Throwable ex) { - if (!crash_reports && Log.ownFault(ex)) { + if (!crash_reports && Log.isOwnFault(ex)) { Log.e(ex); if (BuildConfig.BETA_RELEASE || !Helper.isPlayStoreInstall(ApplicationEx.this)) - Log.writeCrash(ApplicationEx.this, ex); + Log.writeCrashLog(ApplicationEx.this, ex); if (prev != null) prev.uncaughtException(thread, ex); diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index ea3d141c5d..d17a7c8589 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -322,7 +322,7 @@ public class Log { Log.i(message + " " + mb + " MB" + " " + perc + " %"); } - static boolean ownFault(Throwable ex) { + static boolean isOwnFault(Throwable ex) { if (ex instanceof OutOfMemoryError) return false; @@ -368,7 +368,7 @@ public class Log { return false; } - static void writeCrash(Context context, Throwable ex) { + static void writeCrashLog(Context context, Throwable ex) { File file = new File(context.getCacheDir(), "crash.log"); Log.w("Writing exception to " + file);