Fixed default attachment type

pull/50/head
M66B 6 years ago
parent 18fdd1c445
commit 1e17cb5124

@ -403,7 +403,7 @@ public class FragmentCompose extends FragmentEx {
String extension = MimeTypeMap.getFileExtensionFromUrl(attachment.name.toLowerCase()); String extension = MimeTypeMap.getFileExtensionFromUrl(attachment.name.toLowerCase());
if (extension != null) if (extension != null)
attachment.type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); attachment.type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
if (extension == null) if (attachment.type == null)
attachment.type = "application/octet-stream"; attachment.type = "application/octet-stream";
String size = cursor.getString(cursor.getColumnIndex(OpenableColumns.SIZE)); String size = cursor.getString(cursor.getColumnIndex(OpenableColumns.SIZE));

Loading…
Cancel
Save