From 4f2d37e226eae00b6d46482e9db98ba8cf119e67 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 22 Aug 2018 16:55:18 +0000 Subject: [PATCH] Fixed non attachments --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index c5bebdeb..057450c3 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -352,7 +352,7 @@ public class MessageHelper { filename = null; } - if (disposition == null || Part.ATTACHMENT.equalsIgnoreCase(disposition) || !TextUtils.isEmpty(filename)) { + if (Part.ATTACHMENT.equalsIgnoreCase(disposition) || !TextUtils.isEmpty(filename)) { ContentType ct = new ContentType(part.getContentType()); EntityAttachment attachment = new EntityAttachment(); attachment.name = filename;