Single sync service

This commit is contained in:
M66B
2019-03-01 19:35:30 +00:00
parent 67ec1908aa
commit c0983d24f5
9 changed files with 62 additions and 238 deletions

View File

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