Merge "b/14075613. Treat empty strings the same as null strings." into ub-mail-master
This commit is contained in:
commit
1355b30577
|
@ -367,11 +367,11 @@ public class Rfc822Output {
|
|||
throws IOException {
|
||||
boolean html = false;
|
||||
String text = bodyText[INDEX_BODY_TEXT];
|
||||
if (text == null) {
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
text = bodyText[INDEX_BODY_HTML];
|
||||
html = true;
|
||||
}
|
||||
if (text == null) {
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
writer.write("\r\n"); // a truly empty message
|
||||
} else {
|
||||
// first multipart element is the body
|
||||
|
|
Loading…
Reference in New Issue