Revert "Single sync service"

This reverts commit c0983d24f5.
This commit is contained in:
M66B
2019-03-02 07:15:49 +00:00
parent fdf4988865
commit 90444cd65e
9 changed files with 238 additions and 62 deletions

View File

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