Skip sync on oneshot operation

This commit is contained in:
M66B
2019-07-22 13:18:52 +02:00
parent 24ac579b1c
commit 7f9b4fc2b5
4 changed files with 13 additions and 10 deletions

View File

@@ -229,7 +229,7 @@ public class EntityOperation {
if (SEND.equals(name))
ServiceSend.start(context);
else
ServiceSynchronize.process(context);
ServiceSynchronize.process(context, false);
}
static void sync(Context context, long fid, boolean foreground) {
@@ -258,7 +258,7 @@ public class EntityOperation {
if (folder.account == null) // Outbox
ServiceSend.start(context);
else if (foreground)
ServiceSynchronize.process(context);
ServiceSynchronize.process(context, true);
}
static void subscribe(Context context, long fid, boolean subscribe) {