From 1e17cb5124643f7a8131caeea31348d22a39c34a Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 13 Aug 2018 05:17:36 +0000 Subject: [PATCH] Fixed default attachment type --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 72425753..8d0a04e7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -403,7 +403,7 @@ public class FragmentCompose extends FragmentEx { String extension = MimeTypeMap.getFileExtensionFromUrl(attachment.name.toLowerCase()); if (extension != null) attachment.type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); - if (extension == null) + if (attachment.type == null) attachment.type = "application/octet-stream"; String size = cursor.getString(cursor.getColumnIndex(OpenableColumns.SIZE));