From 693f6d91aea1f33fdd4cecb809e27897ccf127a8 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 28 Feb 2019 11:03:14 +0000 Subject: [PATCH] Properly reset on demand state --- app/src/main/java/eu/faircode/email/ServiceUI.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceUI.java b/app/src/main/java/eu/faircode/email/ServiceUI.java index 61e9d8a0a8..e2870ff4bf 100644 --- a/app/src/main/java/eu/faircode/email/ServiceUI.java +++ b/app/src/main/java/eu/faircode/email/ServiceUI.java @@ -299,10 +299,12 @@ public class ServiceUI extends IntentService { Log.e(ex); } - db.account().setAccountState(account.id, null); - db.folder().setFolderState(folder.id, null); Log.i(account.name + " closed"); } + + db.account().setAccountState(account.id, null); + db.folder().setFolderState(folder.id, null); + db.folder().setFolderSyncState(folder.id, null); } }