From 3cafd18c6e0edf1aef87035a996f040c9d42401e Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 1 Apr 2020 14:38:49 +0200 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index fe53ea3b2d..2bf1643afb 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -469,6 +469,21 @@ public class Log { */ return false; + if (ex instanceof InternalError && + "Thread starting during runtime shutdown".equals(ex.getMessage())) + /* + java.lang.InternalError: Thread starting during runtime shutdown + java.lang.InternalError: Thread starting during runtime shutdown + at java.lang.Thread.nativeCreate(Native Method) + at java.lang.Thread.start(Thread.java:1063) + at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:921) + at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:989) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1131) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) + at java.lang.Thread.run(Thread.java:818) + */ + return false; + if ("android.app.RemoteServiceException".equals(ex.getClass().getName())) /* android.app.RemoteServiceException: Bad notification for startForeground: java.util.ConcurrentModificationException