|
|
@ -335,9 +335,12 @@ public class FragmentFolders extends FragmentBase {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
if (aid < 0) {
|
|
|
|
List<EntityFolder> folders;
|
|
|
|
// Unified inbox
|
|
|
|
if (aid < 0)
|
|
|
|
List<EntityFolder> folders = db.folder().getFoldersUnified(null, true);
|
|
|
|
folders = db.folder().getFoldersUnified(null, true);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
folders = db.folder().getSynchronizingFolders(aid);
|
|
|
|
|
|
|
|
|
|
|
|
for (EntityFolder folder : folders) {
|
|
|
|
for (EntityFolder folder : folders) {
|
|
|
|
EntityOperation.sync(context, folder.id, true);
|
|
|
|
EntityOperation.sync(context, folder.id, true);
|
|
|
|
|
|
|
|
|
|
|
@ -349,17 +352,13 @@ public class FragmentFolders extends FragmentBase {
|
|
|
|
now = false;
|
|
|
|
now = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
db.setTransactionSuccessful();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
db.endTransaction();
|
|
|
|
db.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (aid < 0)
|
|
|
|
|
|
|
|
ServiceSynchronize.eval(context, "refresh/folders");
|
|
|
|
ServiceSynchronize.eval(context, "refresh/folders");
|
|
|
|
else
|
|
|
|
|
|
|
|
ServiceSynchronize.reload(context, aid, "refresh/folders");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (outbox)
|
|
|
|
if (outbox)
|
|
|
|
ServiceSend.start(context);
|
|
|
|
ServiceSend.start(context);
|
|
|
|