mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 22:15:15 -05:00
Fixed the change of the previous commit
This commit is contained in:
parent
a48adafbbc
commit
dbf38dae65
@ -3306,9 +3306,9 @@ public class MimeUtility {
|
|||||||
BodyPart bodyPart = multipart.getBodyPart(i);
|
BodyPart bodyPart = multipart.getBodyPart(i);
|
||||||
if (bodyPart.getBody() instanceof TextBody) {
|
if (bodyPart.getBody() instanceof TextBody) {
|
||||||
TextBody textBody = (TextBody) bodyPart.getBody();
|
TextBody textBody = (TextBody) bodyPart.getBody();
|
||||||
if (text == null && bodyPart.isMimeType("text/plain")) {
|
if ("".equals(text) && bodyPart.isMimeType("text/plain")) {
|
||||||
text = textBody.getText();
|
text = textBody.getText();
|
||||||
} else if (html == null && bodyPart.isMimeType("text/html")) {
|
} else if ("".equals(html) && bodyPart.isMimeType("text/html")) {
|
||||||
html = textBody.getText();
|
html = textBody.getText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user