Reset failed foreground sync

This commit is contained in:
M66B
2019-03-02 17:46:49 +00:00
parent e71f6d5db1
commit f80d6c683b
2 changed files with 12 additions and 3 deletions

View File

@@ -228,11 +228,14 @@ public class EntityOperation {
if (folder.account != null)
account = db.account().getAccount(folder.account);
JSONArray jargs = folder.getSyncArgs();
jargs.put(foreground);
EntityOperation operation = new EntityOperation();
operation.folder = folder.id;
operation.message = null;
operation.name = SYNC;
operation.args = folder.getSyncArgs().toString();
operation.args = jargs.toString();
operation.created = new Date().getTime();
operation.id = db.operation().insertOperation(operation);