1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Speak preview

This commit is contained in:
M66B 2024-08-29 22:31:47 +02:00
parent 78c87db02f
commit b51a76cf26

View file

@ -3673,10 +3673,11 @@ public class FragmentMessages extends FragmentBase
String body = Helper.readText(message.getFile(context)); String body = Helper.readText(message.getFile(context));
String text = HtmlHelper.getFullText(context, body); String text = HtmlHelper.getFullText(context, body);
String preview = HtmlHelper.getPreview(text);
if (!TextUtils.isEmpty(text)) if (!TextUtils.isEmpty(preview))
sb.append(context.getString(R.string.title_rule_tts_content)) sb.append(context.getString(R.string.title_rule_tts_content))
.append(' ').append(text); .append(' ').append(preview);
return sb.toString(); return sb.toString();
} }