From 43f9db283307a2797ed71111f18a98de9ac6c1ba Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 18 Sep 2018 10:20:42 +0000 Subject: [PATCH] Always generate crash report for non Play store install --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index bd8415e1c1..19a74f7bf9 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -84,15 +84,15 @@ public class ApplicationEx extends Application { } public boolean ownFault(Throwable ex) { + if (!Helper.isPlayStoreInstall(this)) + return true; + if (ex instanceof OutOfMemoryError) return false; if (ex instanceof RemoteException) return false; - if (!Helper.isPlayStoreInstall(this)) - return true; - while (ex != null) { for (StackTraceElement ste : ex.getStackTrace()) if (ste.getClassName().startsWith(getPackageName()))