Run vacuum manually only

pull/171/head
M66B 5 years ago
parent 849c795274
commit 2293cd0bee

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

@ -107,7 +107,10 @@ public class WorkerCleanup extends Worker {
// Clear last search // Clear last search
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); 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(); long now = new Date().getTime();

Loading…
Cancel
Save