From f4544885fc4487fca90e5a6d162e7f7df493b980 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 20 Nov 2020 09:35:53 +0100 Subject: [PATCH] Filter OOM error --- app/src/main/java/eu/faircode/email/Log.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 6c80f5609e..60b19bee17 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -511,7 +511,8 @@ public class Log { if (!isSupportedDevice()) return false; - if (ex instanceof OutOfMemoryError) + if (ex instanceof OutOfMemoryError || + ex.getCause() instanceof OutOfMemoryError) return false; if (ex instanceof RemoteException)