mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Moved cleaning up image cache to daily job
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user