mirror of https://github.com/M66B/FairEmail.git
Added logging
This commit is contained in:
parent
e29be73126
commit
3cf7874497
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue