Moved cleaning up image cache to daily job

This commit is contained in:
M66B
2018-12-05 17:30:23 +01:00
parent 7395221a39
commit 2ea38acdb7
4 changed files with 19 additions and 14 deletions

View File

@@ -79,7 +79,8 @@ public class EntityAttachment {
static File getFile(Context context, Long id) {
File dir = new File(context.getFilesDir(), "attachments");
dir.mkdir();
if (!dir.exists())
dir.mkdir();
return new File(dir, Long.toString(id));
}