Log manual cleanup time

pull/156/head
M66B 6 years ago
parent edfe608730
commit 27b9f23fec

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

Loading…
Cancel
Save