1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Run vacuum manually only

This commit is contained in:
M66B 2019-12-30 08:39:54 +01:00
parent 849c795274
commit 2293cd0bee
2 changed files with 4 additions and 4 deletions

View file

@ -192,9 +192,6 @@ public class ApplicationEx extends Application {
editor.putBoolean("enabled", true);
}
if (version < BuildConfig.VERSION_CODE)
editor.putBoolean("vacuum", true);
if (BuildConfig.DEBUG && false) {
editor.remove("app_support");
editor.remove("notify_archive");

View file

@ -107,7 +107,10 @@ public class WorkerCleanup extends Worker {
// Clear last search
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().remove("last_search").apply();
prefs.edit()
.remove("last_search")
.putBoolean("vacuum", true)
.apply();
}
long now = new Date().getTime();