Workaround Android bug

https://issuetracker.google.com/issues/159730587
This commit is contained in:
M66B
2020-06-25 12:23:35 +02:00
parent db6b2410c9
commit d62a367a6e
3 changed files with 8 additions and 4 deletions

View File

@@ -440,7 +440,7 @@ public class FragmentCompose extends FragmentBase {
Intent pick = new Intent(Intent.ACTION_PICK, ContactsContract.CommonDataKinds.Email.CONTENT_URI);
PackageManager pm = getContext().getPackageManager();
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R && // should be system whitelisted
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R && // should be system whitelisted
pick.resolveActivity(pm) == null)
Snackbar.make(view, R.string.title_no_contacts, Snackbar.LENGTH_LONG).show();
else