Clear last search on manual cleanup

This commit is contained in:
M66B 2019-10-11 18:14:55 +02:00
parent 2c653690ae
commit ff61666297
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ public class WorkerCleanup extends Worker {
int headers = db.message().clearMessageHeaders();
Log.i("Cleared message headers=" + headers);
// Clear last search
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().remove("last_search").apply();
}
long now = new Date().getTime();