Save classifier model on quit

pull/190/head
M66B 4 years ago
parent a25c46fc85
commit 9c3fd46905

@ -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…
Cancel
Save