mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-19 13:34:00 +02:00
Speak preview
This commit is contained in:
@@ -3673,10 +3673,11 @@ public class FragmentMessages extends FragmentBase
|
||||
|
||||
String body = Helper.readText(message.getFile(context));
|
||||
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))
|
||||
.append(' ').append(text);
|
||||
.append(' ').append(preview);
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user