mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 16:39:37 +00:00
Fixed crash
This commit is contained in:
parent
a03b41506c
commit
c58615e15e
1 changed files with 6 additions and 3 deletions
|
@ -2438,9 +2438,12 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
if (!metered || (attachment.size != null && attachment.size < download)) {
|
if (!metered || (attachment.size != null && attachment.size < download)) {
|
||||||
if (iattachments == null)
|
if (iattachments == null)
|
||||||
iattachments = helper.getAttachments();
|
iattachments = helper.getAttachments();
|
||||||
attachment.part = iattachments.get(i).part;
|
// Attachments of drafts might not have been uploaded yet
|
||||||
attachment.download(context, db);
|
if (i < iattachments.size()) {
|
||||||
Log.i(Helper.TAG, folder.name + " downloaded message id=" + message.id + " attachment=" + attachment.name + " size=" + message.size);
|
attachment.part = iattachments.get(i).part;
|
||||||
|
attachment.download(context, db);
|
||||||
|
Log.i(Helper.TAG, folder.name + " downloaded message id=" + message.id + " attachment=" + attachment.name + " size=" + message.size);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue