Save draft on adding attachment

This commit is contained in:
M66B
2019-01-11 18:54:55 +00:00
parent 00ebb279cb
commit e2061a906a
2 changed files with 43 additions and 3 deletions

View File

@@ -342,7 +342,13 @@ public class MessageHelper {
attachments.remove(attachment);
}
if (attachments.size() == 0)
int available = 0;
for (EntityAttachment attachment : attachments)
if (attachment.available)
available++;
Log.i("Attachments available=" + available);
if (available == 0)
imessage.setContent(alternativePart);
else {
Multipart mixedPart = new MimeMultipart("mixed");