mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 06:01:12 +00:00
Save classifier model on quit
This commit is contained in:
parent
a25c46fc85
commit
9c3fd46905
1 changed files with 2 additions and 11 deletions
|
@ -515,6 +515,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
List<EntityOperation> ops = db.operation().getOperations(EntityOperation.SYNC);
|
||||
for (EntityOperation op : ops)
|
||||
db.folder().setFolderSyncState(op.folder, null);
|
||||
|
||||
MessageClassifier.save(ServiceSynchronize.this);
|
||||
} else {
|
||||
// Yield update notifications/widgets
|
||||
try {
|
||||
|
@ -735,17 +737,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
liveAccountNetworkState.postDestroy();
|
||||
|
||||
executor.submit(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
MessageClassifier.save(ServiceSynchronize.this);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
TTSHelper.shutdown();
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue