mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 18:41:20 +01:00
@@ -441,13 +441,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
|
||||
pick.resolveActivity(pm) == null)
|
||||
Snackbar.make(view, R.string.title_no_contacts, Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true).show();
|
||||
else
|
||||
startActivityForResult(Helper.getChooser(getContext(), pick), request);
|
||||
startActivityForResult(Helper.getChooser(getContext(), pick), request);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user