Sync foreground on add/update account

pull/192/head
M66B 3 years ago
parent f8732f55d1
commit 8733edb823

@ -1229,7 +1229,7 @@ public class FragmentAccount extends FragmentBase {
folder.id = db.folder().insertFolder(folder);
EntityLog.log(context, "Added folder=" + folder.name + " type=" + folder.type);
if (folder.synchronize)
EntityOperation.sync(context, folder.id, false);
EntityOperation.sync(context, folder.id, true);
} else {
EntityLog.log(context, "Updated folder=" + folder.name + " type=" + folder.type);
db.folder().setFolderType(existing.id, folder.type);

@ -453,7 +453,7 @@ public class FragmentGmail extends FragmentBase {
folder.id = db.folder().insertFolder(folder);
EntityLog.log(context, "Gmail folder=" + folder.name + " type=" + folder.type);
if (folder.synchronize)
EntityOperation.sync(context, folder.id, false);
EntityOperation.sync(context, folder.id, true);
}
}

@ -564,7 +564,7 @@ public class FragmentOAuth extends FragmentBase {
folder.id = db.folder().insertFolder(folder);
EntityLog.log(context, "OAuth folder=" + folder.name + " type=" + folder.type);
if (folder.synchronize)
EntityOperation.sync(context, folder.id, false);
EntityOperation.sync(context, folder.id, true);
}
}

@ -476,7 +476,7 @@ public class FragmentPop extends FragmentBase {
inbox.id = db.folder().insertFolder(inbox);
if (account.synchronize)
EntityOperation.sync(context, inbox.id, false);
EntityOperation.sync(context, inbox.id, true);
}
EntityFolder drafts = db.folder().getFolderByType(account.id, EntityFolder.DRAFTS);

@ -414,6 +414,8 @@ public class FragmentQuickSetup extends FragmentBase {
folder.setSpecials(account);
folder.id = db.folder().insertFolder(folder);
EntityLog.log(context, "Quick added folder=" + folder.name + " type=" + folder.type);
if (folder.synchronize)
EntityOperation.sync(context, folder.id, true);
}
}

Loading…
Cancel
Save