From 01b0476050625af0cba4b13ee2b45d6a6de371f3 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Sep 2019 11:43:22 +0200 Subject: [PATCH] Set folder error on batch error --- app/src/main/java/eu/faircode/email/Core.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 1102bbd32d..33e0abb24d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -395,6 +395,9 @@ class Core { db.message().setMessageError(m.id, Helper.formatThrowable(ex)); } + if (similar.size() > 0 && !(ex instanceof IllegalArgumentException)) + db.folder().setFolderError(folder.id, Helper.formatThrowable(ex)); + db.setTransactionSuccessful(); } finally { db.endTransaction();