Refactoring

This commit is contained in:
M66B
2018-08-21 14:25:42 +00:00
parent 36bdc2cce7
commit 3ef26e5e46
7 changed files with 26 additions and 26 deletions

View File

@@ -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;