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()))) +
" results: " + Log.getExtras(results));
String body = results.getString("text");
if (body != null)
body = "<p>" + body.replaceAll("\\r?\\n", "<br>") + "</p>";
Object obj = results.get("text");
String body = (obj == null ? null : "<p>" + obj.toString().replaceAll("\\r?\\n", "<br>") + "</p>");
String text = HtmlHelper.getFullText(body);
String language = HtmlHelper.getLanguage(this, ref.subject, text);

Loading…
Cancel
Save