mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Optimization
This commit is contained in:
@@ -611,11 +611,13 @@ public class EntityRule {
|
||||
|
||||
File file = reply.getFile(context);
|
||||
Helper.writeText(file, body);
|
||||
String text = HtmlHelper.getFullText(body);
|
||||
String preview = HtmlHelper.getPreviewText(text);
|
||||
db.message().setMessageContent(reply.id,
|
||||
true,
|
||||
HtmlHelper.getLanguage(context, body),
|
||||
HtmlHelper.getLanguage(context, text),
|
||||
false,
|
||||
HtmlHelper.getPreview(body),
|
||||
preview,
|
||||
null);
|
||||
|
||||
if (attachments)
|
||||
@@ -700,7 +702,9 @@ public class EntityRule {
|
||||
.append(' ').append(message.subject).append(". ");
|
||||
|
||||
String body = Helper.readText(message.getFile(context));
|
||||
String preview = HtmlHelper.getPreview(body);
|
||||
String text = HtmlHelper.getFullText(body);
|
||||
String preview = HtmlHelper.getPreviewText(text);
|
||||
|
||||
if (!TextUtils.isEmpty(preview))
|
||||
sb.append(res.getString(R.string.title_rule_tts_content))
|
||||
.append(' ').append(preview);
|
||||
|
||||
Reference in New Issue
Block a user