Added logging

This commit is contained in:
M66B 2023-01-19 09:29:20 +01:00
parent e29be73126
commit 3cf7874497
1 changed files with 7 additions and 2 deletions

View File

@ -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 = "<div>" + HtmlHelper.formatPlainText(text.toString(), false) + "</div>";
} else
} else {
Log.i("Paste: using HTML");
html = h;
}
Helper.getUIExecutor().submit(new Runnable() {
@Override