From 84464bbb40fb5670a760eb689991ae781c63ff3a Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 9 May 2020 17:10:54 +0200 Subject: [PATCH] Override GPX mime type --- 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 d609139329..9180f2896c 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -188,6 +188,9 @@ public class EntityAttachment { type = gtype; } + if ("gpx".equals(extension)) + return "application/gpx+xml"; + if ("eml".equals(extension)) return "message/rfc822";