From 22347d4ac09ce696e234dc8888536a8f31f2f14b Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 6 Feb 2020 13:24:44 +0100 Subject: [PATCH] Request sync for new folders --- app/src/main/java/eu/faircode/email/FragmentAccount.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 60895b945b..2f16a508b0 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -1156,6 +1156,8 @@ public class FragmentAccount extends FragmentBase { folder.account = account.id; EntityLog.log(context, "Added folder=" + folder.name + " type=" + folder.type); folder.id = db.folder().insertFolder(folder); + if (folder.synchronize) + EntityOperation.sync(context, folder.id, false); } else { EntityLog.log(context, "Updated folder=" + folder.name + " type=" + folder.type); db.folder().setFolderType(existing.id, folder.type);