Check if photo picker available

This commit is contained in:
M66B 2023-08-01 08:36:08 +02:00
parent 848e3ff8d6
commit 6271fd92fe
1 changed files with 1 additions and 1 deletions

View File

@ -3500,7 +3500,7 @@ public class FragmentCompose extends FragmentBase {
// https://developer.android.com/reference/android/provider/MediaStore#ACTION_PICK_IMAGES
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean photo_picker = prefs.getBoolean("photo_picker", true);
if (photo_picker)
if (photo_picker && Helper.hasPhotoPicker())
try {
Log.i("Using photo picker");
pickImages.launch(new PickVisualMediaRequest.Builder()