From 9b93497ae455cdeb0849facfa4de743bb1675a81 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 20 Aug 2021 12:20:20 +0200 Subject: [PATCH] Workaround wrong mime types for mp3 --- 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 a4bfc797d6..001bac7f45 100644 --- a/app/src/main/java/eu/faircode/email/EntityAttachment.java +++ b/app/src/main/java/eu/faircode/email/EntityAttachment.java @@ -179,6 +179,9 @@ public class EntityAttachment { if ("docx".equals(extension)) return "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + if ("mp3".equals(extension)) + return "audio/mpeg"; + if ("xls".equals(extension)) return "application/vnd.ms-excel";