mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
parent
59797464ef
commit
7710b223f0
1 changed files with 9 additions and 1 deletions
|
@ -534,6 +534,12 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
|
|
||||||
private void stopService() {
|
private void stopService() {
|
||||||
EntityLog.log(this, "Service stop");
|
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();
|
stopSelf();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1384,8 +1390,10 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
for (EntityAccount account : db.account().getAccounts())
|
for (EntityAccount account : db.account().getAccounts())
|
||||||
db.account().setAccountState(account.id, null);
|
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().setFolderState(folder.id, null);
|
||||||
|
db.folder().setFolderSyncState(folder.id, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.e(ex);
|
Log.e(ex);
|
||||||
|
|
Loading…
Reference in a new issue