mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 10:35:15 +01:00
Single sync service
This commit is contained in:
@@ -123,8 +123,8 @@ public class EntityOperation {
|
||||
|
||||
if (account == null) // Outbox
|
||||
ServiceSend.start(context);
|
||||
else if (!"connected".equals(account.state))
|
||||
ServiceUI.process(context, fid);
|
||||
else
|
||||
ServiceSynchronize.start(context);
|
||||
|
||||
Log.i("Queued sync folder=" + folder);
|
||||
}
|
||||
@@ -253,11 +253,8 @@ public class EntityOperation {
|
||||
|
||||
if (SEND.equals(name))
|
||||
ServiceSend.start(context);
|
||||
else {
|
||||
EntityAccount account = db.account().getAccount(message.account);
|
||||
if (account != null && !"connected".equals(account.state))
|
||||
ServiceUI.process(context, operation.folder);
|
||||
}
|
||||
else
|
||||
ServiceSynchronize.start(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user