Convert mime type application/x-pdf

This commit is contained in:
M66B 2020-04-22 19:21:02 +02:00
parent 9d0637a90a
commit b317d64377
1 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,9 @@ public class EntityAttachment {
if ("text/plain".equals(type) && "ovpn".equals(extension))
return "application/x-openvpn-profile";
if ("application/x-pdf".equals(type))
return "application/pdf";
if (TextUtils.isEmpty(type) ||
type.startsWith("unknown/") || type.endsWith("/unknown") ||
"application/octet-stream".equals(type) || "application/zip".equals(type)) {