Added folder sync worker

This commit is contained in:
M66B
2019-03-03 09:31:26 +00:00
parent 9a05d7ac6a
commit 14cdd55c77
3 changed files with 112 additions and 76 deletions

View File

@@ -304,7 +304,7 @@ public class FragmentFolders extends FragmentBase {
// Folder list
EntityAccount account = db.account().getAccount(aid);
if (account != null && !"connected".equals(account.state))
ServiceUI.fsync(context, aid);
WorkerFolderSync.queue(aid);
else
ServiceSynchronize.reload(getContext(), "refresh folders");
}