Explicitly request write URI permissions

This commit is contained in:
M66B
2022-06-25 16:02:24 +02:00
parent 40bb26dfe6
commit e2beac7154
7 changed files with 7 additions and 0 deletions

View File

@@ -375,6 +375,7 @@ public class ActivityEML extends ActivityBase {
Intent create = new Intent(Intent.ACTION_CREATE_DOCUMENT);
create.addCategory(Intent.CATEGORY_OPENABLE);
create.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
create.setType(apart.attachment.getMimeType());
if (!TextUtils.isEmpty(apart.attachment.name))
create.putExtra(Intent.EXTRA_TITLE, apart.attachment.name);