1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Fixed default attachment type

This commit is contained in:
M66B 2018-08-13 05:17:36 +00:00
parent 18fdd1c445
commit 1e17cb5124

View file

@ -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));