1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Convert HTML only if editor is empty

This commit is contained in:
M66B 2024-12-14 10:32:20 +01:00
parent 5b512c1b22
commit 16714bcab8

View file

@ -619,7 +619,7 @@ public class EditTextCompose extends FixedEditText {
final String html; final String html;
String h = null; String h = null;
if (raw || !BuildConfig.PLAY_STORE_RELEASE) { if (raw || (!BuildConfig.PLAY_STORE_RELEASE && length() == 0)) {
CharSequence text = item.getText(); CharSequence text = item.getText();
if (text != null && DetectHtml.isHtml(text.toString())) { if (text != null && DetectHtml.isHtml(text.toString())) {
Log.i("Paste: raw HTML"); Log.i("Paste: raw HTML");