mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Convert mime type application/x-pdf
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user