Request sync for new folders

This commit is contained in:
M66B 2020-02-06 13:24:44 +01:00
parent c912f99bce
commit 22347d4ac0
1 changed files with 2 additions and 0 deletions

View File

@ -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);