Fixed saving drafts with selected identity

This commit is contained in:
M66B
2018-08-28 16:51:22 +00:00
parent d97261796a
commit 2b5dd74721
2 changed files with 6 additions and 1 deletions

View File

@@ -1054,7 +1054,9 @@ public class FragmentCompose extends FragmentEx {
EntityOperation.queue(db, draft, EntityOperation.MOVE, trash.id);
} else if (action == R.id.action_save) {
if (ato == null && acc == null && abcc == null &&
EntityIdentity primary = db.identity().getPrimaryIdentity(draft.account);
if ((primary == null || draft.identity == primary.id) &&
ato == null && acc == null && abcc == null &&
TextUtils.isEmpty(subject) &&
TextUtils.isEmpty(body) &&
db.attachment().getAttachmentCount(draft.id) == 0)