mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01: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