1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Log manual cleanup time

This commit is contained in:
M66B 2019-05-01 22:02:40 +02:00
parent edfe608730
commit 27b9f23fec

View file

@ -158,10 +158,9 @@ public class WorkerCleanup extends Worker {
Log.e(ex); Log.e(ex);
} finally { } finally {
Log.i("End cleanup"); Log.i("End cleanup");
if (!manual) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
prefs.edit().putLong("last_cleanup", new Date().getTime()).apply(); prefs.edit().putLong("last_cleanup", new Date().getTime()).apply();
}
} }
} }