From e0164e02ecf1182909f02bacc4266e249488bb50 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 20 Jan 2021 17:21:22 +0100 Subject: [PATCH] Fetch = syncing --- app/src/main/java/eu/faircode/email/Core.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index edf12259c4..f98ae42908 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -286,6 +286,9 @@ class Core { if (message != null) db.message().setMessageError(message.id, null); + if (EntityOperation.FETCH.equals(op.name)) + db.folder().setFolderSyncState(op.folder, "syncing"); + db.operation().setOperationState(op.id, "executing"); for (TupleOperationEx s : similar.keySet()) db.operation().setOperationState(s.id, "executing"); @@ -559,6 +562,8 @@ class Core { try { db.beginTransaction(); + if (EntityOperation.FETCH.equals(op.name)) + db.folder().setFolderSyncState(op.folder, null); db.operation().setOperationState(op.id, null); for (TupleOperationEx s : similar.keySet()) db.operation().setOperationState(s.id, null);