Optimization

This commit is contained in:
M66B
2021-01-19 11:57:59 +01:00
parent 8f3bd8b5ce
commit c24f79354e
7 changed files with 55 additions and 51 deletions

View File

@@ -288,8 +288,9 @@ public class ServiceUI extends IntentService {
if (body != null)
body = "<p>" + body.replaceAll("\\r?\\n", "<br>") + "</p>";
String language = HtmlHelper.getLanguage(this, body);
String preview = HtmlHelper.getPreview(body);
String text = HtmlHelper.getFullText(body);
String language = HtmlHelper.getLanguage(this, text);
String preview = HtmlHelper.getPreviewText(text);
DB db = DB.getInstance(this);
try {