From af062702f9e86ea9a6a5cbff90e8cb970af2d85c Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Mar 2020 08:01:16 +0100 Subject: [PATCH] Use guessed type for images --- app/src/main/java/eu/faircode/email/EntityAttachment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityAttachment.java b/app/src/main/java/eu/faircode/email/EntityAttachment.java index 712626123c..4810a2a309 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -104,10 +104,10 @@ public class EntityAttachment { boolean isImage() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) - if (IMAGE_TYPES8.contains(type)) + if (IMAGE_TYPES8.contains(getMimeType())) return true; - return IMAGE_TYPES.contains(type); + return IMAGE_TYPES.contains(getMimeType()); } File getFile(Context context) {