mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Refactoring
This commit is contained in:
@@ -1010,9 +1010,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
EntityAttachment a = helper.getAttachments().get(sequence - 1);
|
||||
|
||||
// Build filename
|
||||
File dir = new File(getFilesDir(), "attachments");
|
||||
dir.mkdir();
|
||||
File file = new File(dir, Long.toString(attachment.id));
|
||||
File file = EntityAttachment.getFile(this, attachment.id);
|
||||
|
||||
// Download attachment
|
||||
InputStream is = null;
|
||||
|
||||
Reference in New Issue
Block a user