1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Clear last search on manual cleanup

This commit is contained in:
M66B 2019-10-11 18:14:55 +02:00
parent 2c653690ae
commit ff61666297

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();