mirror of https://github.com/M66B/FairEmail.git
Fixed folder sync state
This commit is contained in:
parent
0eb9698c30
commit
227d092c2a
|
@ -534,12 +534,6 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
|
||||
private void stopService() {
|
||||
EntityLog.log(this, "Service stop");
|
||||
|
||||
DB db = DB.getInstance(this);
|
||||
List<EntityOperation> ops = db.operation().getOperations(EntityOperation.SYNC);
|
||||
for (EntityOperation op : ops)
|
||||
db.folder().setFolderSyncState(op.folder, null);
|
||||
|
||||
stopSelf();
|
||||
}
|
||||
|
||||
|
@ -1390,10 +1384,8 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
for (EntityAccount account : db.account().getAccounts())
|
||||
db.account().setAccountState(account.id, null);
|
||||
|
||||
for (EntityFolder folder : db.folder().getFolders()) {
|
||||
for (EntityFolder folder : db.folder().getFolders())
|
||||
db.folder().setFolderState(folder.id, null);
|
||||
db.folder().setFolderSyncState(folder.id, null);
|
||||
}
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
|
|
Loading…
Reference in New Issue