Refactoring

This commit is contained in:
M66B
2019-03-03 09:19:45 +00:00
parent 41e16cab20
commit 9a05d7ac6a
2 changed files with 6 additions and 11 deletions

View File

@@ -215,7 +215,7 @@ public class EntityOperation {
else if (FOREGROUND.contains(name)) {
EntityAccount account = db.account().getAccount(message.account);
if (account != null && !"connected".equals(account.state))
WorkerForeground.queue(operation.folder);
WorkerOperations.queue(operation.folder);
}
}
@@ -248,7 +248,7 @@ public class EntityOperation {
if (account == null) // Outbox
ServiceSend.start(context);
else if (foreground && !"connected".equals(account.state))
WorkerForeground.queue(fid);
WorkerOperations.queue(fid);
Log.i("Queued sync folder=" + folder + " foreground=" + foreground);
}