From 306af1adb942bd82776705f8124fc474650033ee Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 26 Jun 2021 09:53:40 +0200 Subject: [PATCH] Clear composing --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index d8684efee8..9cbaceb944 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1295,6 +1295,8 @@ public class FragmentCompose extends FragmentBase { } private void convertRef(boolean plain) { + etBody.clearComposingText(); + Bundle args = new Bundle(); args.putLong("id", working); args.putBoolean("plain", plain); @@ -1379,6 +1381,8 @@ public class FragmentCompose extends FragmentBase { } private void deleteRef() { + etBody.clearComposingText(); + Bundle extras = new Bundle(); extras.putString("html", HtmlHelper.toHtml(etBody.getText(), getContext())); extras.putBoolean("show", true); @@ -2039,6 +2043,8 @@ public class FragmentCompose extends FragmentBase { } private void onMenuAnswerCreate() { + etBody.clearComposingText(); + Bundle args = new Bundle(); args.putString("subject", etSubject.getText().toString()); args.putString("html", HtmlHelper.toHtml(etBody.getText(), getContext())); @@ -2553,6 +2559,8 @@ public class FragmentCompose extends FragmentBase { } private void onAddAttachment(List uris, boolean image, int resize, boolean privacy) { + etBody.clearComposingText(); + Bundle args = new Bundle(); args.putLong("id", working); args.putParcelableArrayList("uris", new ArrayList<>(uris));