From d3ddbc5ebb417e73e07ca41e9bfdc9e1d86dbeb7 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Nov 2018 11:35:06 +0100 Subject: [PATCH] Fixed too early account errors --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index a9e9d42c00..25d02e09ba 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1206,6 +1206,8 @@ public class ServiceSynchronize extends LifecycleService { throw new FolderClosedException(folders.get(folder)); } else synchronizeMessages(account, folder, folders.get(folder), state); + + db.account().setAccountConnected(account.id, new Date().getTime()); } }