From 14d3b6930ca0e5f7c34f13f4f467893a98ef5af9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 Nov 2019 11:07:45 +0100 Subject: [PATCH] Added exception for ovpn files --- app/src/main/java/eu/faircode/email/EntityAttachment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityAttachment.java b/app/src/main/java/eu/faircode/email/EntityAttachment.java index 1387477eb8..26bcd8d0fd 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -160,6 +160,9 @@ public class EntityAttachment { if (extension == null) return type; + if ("ovpn".equals(extension)) + return "application/x-openvpn-profile"; + String gtype = MimeTypeMap.getSingleton() .getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));