From 1d73cc8933004203b740cdae965ecf328aaa7b0c Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Sep 2019 22:09:00 +0200 Subject: [PATCH] Save draft on edit/delete reference --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index b2b17e2cf1..d6f5125052 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -642,8 +642,10 @@ public class FragmentCompose extends FragmentBase { @Override protected void onExecuted(Bundle args, EntityMessage draft) { - if (draft != null) + if (draft != null) { showDraft(draft); + onAction(R.id.action_save); // Update inline images + } } @Override @@ -727,6 +729,7 @@ public class FragmentCompose extends FragmentBase { protected void onExecuted(Bundle args, EntityMessage draft) { plain_only = true; getActivity().invalidateOptionsMenu(); + onAction(R.id.action_save); // Update inline images showDraft(draft); }