From 16714bcab89394bd83bf9dbcff41d2dfc6b758ca Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Dec 2024 10:32:20 +0100 Subject: [PATCH] Convert HTML only if editor is empty --- app/src/main/java/eu/faircode/email/EditTextCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EditTextCompose.java b/app/src/main/java/eu/faircode/email/EditTextCompose.java index eea6dfd12c..d73f6a3109 100644 --- a/app/src/main/java/eu/faircode/email/EditTextCompose.java +++ b/app/src/main/java/eu/faircode/email/EditTextCompose.java @@ -619,7 +619,7 @@ public class EditTextCompose extends FixedEditText { final String html; String h = null; - if (raw || !BuildConfig.PLAY_STORE_RELEASE) { + if (raw || (!BuildConfig.PLAY_STORE_RELEASE && length() == 0)) { CharSequence text = item.getText(); if (text != null && DetectHtml.isHtml(text.toString())) { Log.i("Paste: raw HTML");