From f23a3c06f6fe67ba585f98515ca9897aafa08aed Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 5 Jun 2020 11:04:18 +0200 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 21 ++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 7f793fde9c..a67bce541d 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -737,7 +737,6 @@ public class Log { if (ex instanceof CursorWindowAllocationException || "android.database.CursorWindowAllocationException".equals(ex.getClass().getName())) /* - android.database.CursorWindowAllocationException: Could not allocate CursorWindow '/data/user/0/eu.faircode.email/no_backup/androidx.work.workdb' of size 2097152 due to error -12. android.database.CursorWindowAllocationException: Could not allocate CursorWindow '/data/user/0/eu.faircode.email/no_backup/androidx.work.workdb' of size 2097152 due to error -12. at android.database.CursorWindow.nativeCreate(Native Method) at android.database.CursorWindow.(CursorWindow.java:139) @@ -755,7 +754,6 @@ public class Log { if ("android.util.SuperNotCalledException".equals(ex.getClass().getName())) /* - android.util.SuperNotCalledException: Activity {eu.faircode.email/eu.faircode.email.ActivityView} did not call through to super.onResume() android.util.SuperNotCalledException: Activity {eu.faircode.email/eu.faircode.email.ActivityView} did not call through to super.onResume() at android.app.Activity.performResume(Activity.java:7304) at android.app.ActivityThread.performNewIntents(ActivityThread.java:3165) @@ -764,6 +762,25 @@ public class Log { */ return false; + if ("android.view.WindowManager$InvalidDisplayException".equals(ex.getClass().getName())) + /* + android.view.WindowManager$InvalidDisplayException: Unable to add window android.view.ViewRootImpl$W@d7b5a0b -- the specified display can not be found + at android.view.ViewRootImpl.setView(ViewRootImpl.java:854) + at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356) + at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93) + at android.widget.PopupWindow.invokePopup(PopupWindow.java:1492) + at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1342) + at androidx.appcompat.widget.AppCompatPopupWindow.showAsDropDown(SourceFile:77) + at androidx.core.widget.PopupWindowCompat.showAsDropDown(SourceFile:69) + at androidx.appcompat.widget.ListPopupWindow.show(SourceFile:754) + at androidx.appcompat.view.menu.CascadingMenuPopup.showMenu(SourceFile:486) + at androidx.appcompat.view.menu.CascadingMenuPopup.show(SourceFile:265) + at androidx.appcompat.view.menu.MenuPopupHelper.showPopup(SourceFile:290) + at androidx.appcompat.view.menu.MenuPopupHelper.tryShow(SourceFile:177) + at androidx.appcompat.widget.ActionMenuPresenter$OpenOverflowRunnable.run(SourceFile:792) + */ + return false; + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) if (ex instanceof RuntimeException && ex.getCause() instanceof DeadObjectException) return false;