mirror of https://github.com/M66B/FairEmail.git
Check if photo picker available
This commit is contained in:
parent
848e3ff8d6
commit
6271fd92fe
|
@ -3500,7 +3500,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
// https://developer.android.com/reference/android/provider/MediaStore#ACTION_PICK_IMAGES
|
// https://developer.android.com/reference/android/provider/MediaStore#ACTION_PICK_IMAGES
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean photo_picker = prefs.getBoolean("photo_picker", true);
|
boolean photo_picker = prefs.getBoolean("photo_picker", true);
|
||||||
if (photo_picker)
|
if (photo_picker && Helper.hasPhotoPicker())
|
||||||
try {
|
try {
|
||||||
Log.i("Using photo picker");
|
Log.i("Using photo picker");
|
||||||
pickImages.launch(new PickVisualMediaRequest.Builder()
|
pickImages.launch(new PickVisualMediaRequest.Builder()
|
||||||
|
|
Loading…
Reference in New Issue