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

@@ -4700,6 +4700,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private void onPickContact(String name, String email) {
Intent pick = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
pick.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
properties.setValue("name", name);
properties.setValue("email", email);
try {