Fixed reply direct with spanned text

pull/213/head
M66B 1 year ago
parent 362b91c17a
commit 9f2cabb122

@ -338,9 +338,8 @@ public class ServiceUI extends IntentService {
" inner=" + inner + (inner == null ? "" : " extras: " + TextUtils.join(" ", Log.getExtras(inner.getExtras()))) + " inner=" + inner + (inner == null ? "" : " extras: " + TextUtils.join(" ", Log.getExtras(inner.getExtras()))) +
" results: " + Log.getExtras(results)); " results: " + Log.getExtras(results));
String body = results.getString("text"); Object obj = results.get("text");
if (body != null) String body = (obj == null ? null : "<p>" + obj.toString().replaceAll("\\r?\\n", "<br>") + "</p>");
body = "<p>" + body.replaceAll("\\r?\\n", "<br>") + "</p>";
String text = HtmlHelper.getFullText(body); String text = HtmlHelper.getFullText(body);
String language = HtmlHelper.getLanguage(this, ref.subject, text); String language = HtmlHelper.getLanguage(this, ref.subject, text);

Loading…
Cancel
Save