mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Speak preview
This commit is contained in:
parent
78c87db02f
commit
b51a76cf26
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue