From 6a2191a35c7626f658f5ae699497f88c4cf4e828 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 4 Apr 2019 14:36:03 +0200 Subject: [PATCH] Suppress folder closed exception for operations --- app/src/main/java/eu/faircode/email/Core.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 72a90a0837..a3250cd319 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -214,9 +214,11 @@ class Core { Log.e(folder.name, ex); reportError(context, account, folder, ex); - db.operation().setOperationError(op.id, Helper.formatThrowable(ex)); - if (message != null) - db.message().setMessageError(message.id, Helper.formatThrowable(ex, true)); + if (!(ex instanceof FolderClosedException)) { + db.operation().setOperationError(op.id, Helper.formatThrowable(ex)); + if (message != null) + db.message().setMessageError(message.id, Helper.formatThrowable(ex, true)); + } if (ex instanceof MessageRemovedException || ex instanceof FolderNotFoundException ||