mirror of https://github.com/M66B/FairEmail.git
Use fixed mime type when saving multiple attachments
This commit is contained in:
parent
84464bbb40
commit
5ea569acba
|
@ -425,7 +425,7 @@ public class FragmentBase extends Fragment {
|
|||
String name = Helper.sanitizeFilename(attachment.name);
|
||||
if (TextUtils.isEmpty(name))
|
||||
name = Long.toString(attachment.id);
|
||||
DocumentFile document = tree.createFile(attachment.type, name);
|
||||
DocumentFile document = tree.createFile(attachment.getMimeType(), name);
|
||||
if (document == null)
|
||||
throw new FileNotFoundException("Could not save " + uri + ":" + name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue