mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
8744efd7d5
commit
0f63ac9d96
|
@ -452,7 +452,7 @@ public class EntityOperation {
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
|
|
||||||
boolean force = false;
|
boolean force = false;
|
||||||
List<EntityOperation> ops = db.operation().getOperationsByFolder(fid, EntityOperation.SYNC);
|
List<EntityOperation> ops = db.operation().getOperationsByFolder(fid, SYNC);
|
||||||
if (ops != null)
|
if (ops != null)
|
||||||
for (EntityOperation op : ops)
|
for (EntityOperation op : ops)
|
||||||
if (EntityFolder.isSyncForced(op.args)) {
|
if (EntityFolder.isSyncForced(op.args)) {
|
||||||
|
@ -460,7 +460,7 @@ public class EntityOperation {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
db.operation().deleteOperation(fid, EntityOperation.SYNC);
|
db.operation().deleteOperation(fid, SYNC);
|
||||||
sync(context, fid, false, force);
|
sync(context, fid, false, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue