From eb44e41f7b7add871b1470ff396f9904fb8d6ca0 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Aug 2021 16:15:41 +0200 Subject: [PATCH] Convert body in action loader --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 1b5e0e13f8..8f5903e7e8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -3707,7 +3707,7 @@ public class FragmentCompose extends FragmentBase { args.putString("cc", etCc.getText().toString().trim()); args.putString("bcc", etBcc.getText().toString().trim()); args.putString("subject", etSubject.getText().toString().trim()); - args.putString("body", HtmlHelper.toHtml(etBody.getText(), getContext())); + args.putCharSequence("spanned", etBody.getText()); args.putBoolean("signature", cbSignature.isChecked()); args.putBoolean("empty", isEmpty()); args.putBoolean("notext", notext); @@ -5029,13 +5029,14 @@ public class FragmentCompose extends FragmentBase { String cc = args.getString("cc"); String bcc = args.getString("bcc"); String subject = args.getString("subject"); - String body = args.getString("body"); + Spanned spanned = (Spanned) args.getCharSequence("spanned"); boolean signature = args.getBoolean("signature"); boolean empty = args.getBoolean("empty"); boolean notext = args.getBoolean("notext"); Bundle extras = args.getBundle("extras"); boolean dirty = false; + String body = HtmlHelper.toHtml(spanned, context); EntityMessage draft; SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);