From a99c4e070ead1a48f91b09183e5f9df785804937 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 3 Sep 2019 08:18:30 +0200 Subject: [PATCH] No own fault --- 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 61adfbd0c0..69fa40f2d8 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -354,6 +354,22 @@ public class Log { if (ex instanceof NoSuchMethodError) return false; + if (ex instanceof IllegalStateException && + "Drag shadow dimensions must be positive".equals(ex.getMessage())) + /* + Android 9 only + java.lang.IllegalStateException: Drag shadow dimensions must be positive + java.lang.IllegalStateException: Drag shadow dimensions must be positive + at android.view.View.startDragAndDrop(View.java:24027) + at android.widget.Editor.startDragAndDrop(Editor.java:1165) + at android.widget.Editor.performLongClick(Editor.java:1191) + at android.widget.TextView.performLongClick(TextView.java:11346) + at android.view.View.performLongClick(View.java:6653) + at android.view.View$CheckForLongPress.run(View.java:25855) + at android.os.Handler.handleCallback(Handler.java:873) + */ + return false; + if (ex.getMessage() != null && (ex.getMessage().startsWith("Bad notification posted") || ex.getMessage().contains("ActivityRecord not found") ||