Request URI permissions when picking contacts

This commit is contained in:
M66B
2022-06-30 10:33:34 +02:00
parent 3fff2df189
commit 5d14122b1b
3 changed files with 5 additions and 0 deletions

View File

@@ -544,6 +544,7 @@ public class FragmentCompose extends FragmentBase {
// https://developer.android.com/guide/topics/providers/contacts-provider#Intents
Intent pick = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Email.CONTENT_URI);
pick.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivityForResult(Helper.getChooser(getContext(), pick), request);
}
};