1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Fixed the change of the previous commit

This commit is contained in:
cketti 2012-03-17 00:30:40 +01:00
parent a48adafbbc
commit dbf38dae65

View File

@ -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();
} }
} }