Browse Source

Fixed default attachment type

main
M66B 6 years ago
parent
commit
1e17cb5124
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentCompose.java

+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentCompose.java 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));


Loading…
Cancel
Save