|
|
@ -240,9 +240,8 @@ public class EntityOperation {
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
|
|
|
|
|
|
|
|
EntityFolder folder = db.folder().getFolder(fid);
|
|
|
|
EntityFolder folder = db.folder().getFolder(fid);
|
|
|
|
EntityAccount account = null;
|
|
|
|
if (folder == null)
|
|
|
|
if (folder.account != null)
|
|
|
|
return;
|
|
|
|
account = db.account().getAccount(folder.account);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (db.operation().getOperationCount(fid, EntityOperation.SYNC) == 0) {
|
|
|
|
if (db.operation().getOperationCount(fid, EntityOperation.SYNC) == 0) {
|
|
|
|
EntityOperation operation = new EntityOperation();
|
|
|
|
EntityOperation operation = new EntityOperation();
|
|
|
@ -260,7 +259,7 @@ public class EntityOperation {
|
|
|
|
db.folder().setFolderSyncState(fid, "requested");
|
|
|
|
db.folder().setFolderSyncState(fid, "requested");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (account == null) // Outbox
|
|
|
|
if (folder.account == null) // Outbox
|
|
|
|
ServiceSend.start(context);
|
|
|
|
ServiceSend.start(context);
|
|
|
|
else if (foreground)
|
|
|
|
else if (foreground)
|
|
|
|
ServiceSynchronize.process(context);
|
|
|
|
ServiceSynchronize.process(context);
|
|
|
|