From 82c9d82396a99a4970616416fc5ebe21e960f1a1 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 Jul 2020 20:43:27 +0200 Subject: [PATCH] application/x-pdf, pdf/pdf, what else? --- app/src/main/java/eu/faircode/email/EntityAttachment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityAttachment.java b/app/src/main/java/eu/faircode/email/EntityAttachment.java index 4373870047..b598850829 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -204,7 +204,8 @@ public class EntityAttachment { if ("video/jpeg".equals(type)) return "image/jpeg"; - if ("application/x-pdf".equals(type)) + if (!TextUtils.isEmpty(type) && + (type.endsWith("/pdf") || type.endsWith("/x-pdf"))) return "application/pdf"; if ("application/vnd.ms-pps".equals(type))