mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Workaround Android bug
https://issuetracker.google.com/issues/159730587
This commit is contained in:
@@ -3285,7 +3285,8 @@ 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);
|
||||
if (pick.resolveActivity(context.getPackageManager()) == null) // system whitelisted
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R && // should be system whitelisted
|
||||
pick.resolveActivity(context.getPackageManager()) == null)
|
||||
Snackbar.make(view, R.string.title_no_contacts, Snackbar.LENGTH_LONG).show();
|
||||
else {
|
||||
properties.setValue("name", name);
|
||||
|
||||
Reference in New Issue
Block a user