mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Log manual cleanup time
This commit is contained in:
parent
edfe608730
commit
27b9f23fec
1 changed files with 3 additions and 4 deletions
|
@ -158,12 +158,11 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void queue(Context context) {
|
static void queue(Context context) {
|
||||||
Log.i("Queuing " + getName() + " every " + CLEANUP_INTERVAL + " hours");
|
Log.i("Queuing " + getName() + " every " + CLEANUP_INTERVAL + " hours");
|
||||||
|
|
Loading…
Reference in a new issue