mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Use corrected mime type for saving attachments
This commit is contained in:
parent
3d5eb73d08
commit
9e302b8c81
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ public class FragmentBase extends Fragment {
|
|||
Intent create = new Intent(Intent.ACTION_CREATE_DOCUMENT);
|
||||
create.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
create.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||
create.setType(attachment.type);
|
||||
create.setType(attachment.getMimeType());
|
||||
create.putExtra(Intent.EXTRA_TITLE, attachment.name);
|
||||
Helper.openAdvanced(context, create);
|
||||
PackageManager pm = context.getPackageManager();
|
||||
|
|
Loading…
Reference in a new issue