mirror of https://github.com/M66B/FairEmail.git
Added no body warning
This commit is contained in:
parent
f478242ca2
commit
7d9e4e0e5e
|
@ -538,8 +538,10 @@ public class MessageHelper {
|
||||||
private List<String> warnings = new ArrayList<>();
|
private List<String> warnings = new ArrayList<>();
|
||||||
|
|
||||||
String getHtml(Context context) throws MessagingException {
|
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;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
String result;
|
String result;
|
||||||
boolean text = false;
|
boolean text = false;
|
||||||
|
|
|
@ -439,6 +439,7 @@
|
||||||
<string name="title_report">Report</string>
|
<string name="title_report">Report</string>
|
||||||
<string name="title_no_ask_again">Do not ask this again</string>
|
<string name="title_no_ask_again">Do not ask this again</string>
|
||||||
<string name="title_no_adobe">Adobe Acrobat reader cannot open safely shared files, see the FAQ for more information</string>
|
<string name="title_no_adobe">Adobe Acrobat reader cannot open safely shared files, see the FAQ for more information</string>
|
||||||
|
<string name="title_no_body">No message text found</string>
|
||||||
<string name="title_no_charset">Unsupported encoding: %1$s</string>
|
<string name="title_no_charset">Unsupported encoding: %1$s</string>
|
||||||
|
|
||||||
<string name="title_try">Try FairEmail, an open source, privacy friendly email app for Android</string>
|
<string name="title_try">Try FairEmail, an open source, privacy friendly email app for Android</string>
|
||||||
|
|
Loading…
Reference in New Issue