From 3cf787449777314b792759eed2c4c26288bae728 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 19 Jan 2023 09:29:20 +0100 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/EditTextCompose.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EditTextCompose.java b/app/src/main/java/eu/faircode/email/EditTextCompose.java index 3f62daeb3c..c4f2795c3b 100644 --- a/app/src/main/java/eu/faircode/email/EditTextCompose.java +++ b/app/src/main/java/eu/faircode/email/EditTextCompose.java @@ -488,8 +488,10 @@ public class EditTextCompose extends FixedEditText { String h = null; if (raw) { CharSequence text = item.getText(); - if (text != null && DetectHtml.isHtml(text.toString())) + if (text != null && DetectHtml.isHtml(text.toString())) { + Log.i("Paste: raw HTML"); h = text.toString(); + } } if (h == null) h = item.getHtmlText(); @@ -497,9 +499,12 @@ public class EditTextCompose extends FixedEditText { CharSequence text = item.getText(); if (text == null) return false; + Log.i("Paste: using plain text"); html = "
" + HtmlHelper.formatPlainText(text.toString(), false) + "
"; - } else + } else { + Log.i("Paste: using HTML"); html = h; + } Helper.getUIExecutor().submit(new Runnable() { @Override