Added no body warning

This commit is contained in:
M66B
2019-01-17 08:09:33 +00:00
parent f478242ca2
commit 7d9e4e0e5e
2 changed files with 4 additions and 1 deletions

View File

@@ -538,8 +538,10 @@ public class MessageHelper {
private List<String> warnings = new ArrayList<>();
String getHtml(Context context) throws MessagingException {
if (plain == null && html == null)
if (plain == null && html == null) {
warnings.add(context.getString(R.string.title_no_body));
return null;
}
String result;
boolean text = false;