From 938eba8973f015e9ef2909f49470c35b317b86c9 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 20 Apr 2020 08:07:41 +0200 Subject: [PATCH] Filter exception --- app/src/main/java/eu/faircode/email/Log.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index eead072618..b400e3958a 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -39,6 +39,7 @@ import android.os.DeadObjectException; import android.os.Debug; import android.os.PowerManager; import android.os.RemoteException; +import android.os.TransactionTooLargeException; import android.text.TextUtils; import android.view.Display; import android.view.OrientationEventListener; @@ -598,6 +599,11 @@ public class Log { */ return false; + if (ex instanceof RuntimeException && + ex.getCause() instanceof TransactionTooLargeException) + // Some Android versions (Samsung) send images as clip data + return false; + if (ex instanceof RuntimeException && ex.getMessage() != null && (ex.getMessage().startsWith("Could not get application info") ||