From 13ece09df05bfc56798f5fc1cc07b86becdf3a91 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 5 Dec 2019 13:25:59 +0100 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 0e98ea4609..b2446b6d8c 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -422,6 +422,22 @@ public class Log { */ return false; + if (ex instanceof RuntimeException && + ex.getMessage() != null && + ex.getMessage().startsWith("Could not get application info")) + return false; + /* + java.lang.RuntimeException: Could not get application info. + java.lang.RuntimeException: Could not get application info. +   at CH0.a(PG:11) +   at org.chromium.content.browser.ChildProcessLauncherHelperImpl.a(PG:34) +   at Fn2.run(PG:5) +   at android.os.Handler.handleCallback(Handler.java:874) +   at android.os.Handler.dispatchMessage(Handler.java:100) +   at android.os.Looper.loop(Looper.java:198) +   at android.os.HandlerThread.run(HandlerThread.java:65) + */ + if (ex.getMessage() != null && (ex.getMessage().startsWith("Bad notification posted") || ex.getMessage().contains("ActivityRecord not found") ||