Added daily cleanup job

This commit is contained in:
M66B
2018-09-04 07:02:54 +00:00
parent 4802a8b2c8
commit e8da25a674
9 changed files with 159 additions and 39 deletions

View File

@@ -145,7 +145,7 @@ public class FragmentMessage extends FragmentEx {
private boolean debug;
private DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
private ExecutorService executor = Executors.newCachedThreadPool();
private ExecutorService executor = Executors.newCachedThreadPool(Helper.backgroundThreadFactory);
private static final long CACHE_IMAGE_DURATION = 3 * 24 * 3600 * 1000L;
static final String ACTION_DECRYPT_MESSAGE = BuildConfig.APPLICATION_ID + ".DECRYPT_MESSAGE";