1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

application/x-pdf, pdf/pdf, what else?

This commit is contained in:
M66B 2020-07-13 20:43:27 +02:00
parent b4fd46b50c
commit 82c9d82396

View file

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