From 27b9f23fece275dd7e083d8d41325960c9d0f64b Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 1 May 2019 22:02:40 +0200 Subject: [PATCH] Log manual cleanup time --- app/src/main/java/eu/faircode/email/WorkerCleanup.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/WorkerCleanup.java b/app/src/main/java/eu/faircode/email/WorkerCleanup.java index 18c2429493..1d56aa35fd 100644 --- a/app/src/main/java/eu/faircode/email/WorkerCleanup.java +++ b/app/src/main/java/eu/faircode/email/WorkerCleanup.java @@ -158,10 +158,9 @@ public class WorkerCleanup extends Worker { Log.e(ex); } finally { Log.i("End cleanup"); - if (!manual) { - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - prefs.edit().putLong("last_cleanup", new Date().getTime()).apply(); - } + + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); + prefs.edit().putLong("last_cleanup", new Date().getTime()).apply(); } }