From fa05849cb5a32418f5b3e8ec7dc4a7eec5460583 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 5 Feb 2021 13:00:57 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/Helper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 01dff90a96..ab822981bf 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -1156,8 +1156,7 @@ public class Helper { String extension = Helper.getExtension(filename); if (extension != null) { extension = extension.toLowerCase(Locale.ROOT); - type = MimeTypeMap.getSingleton() - .getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT)); + type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); } if (TextUtils.isEmpty(type))