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) {