From 6271fd92fefd5576c251b05f9783e2889a7bf411 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 1 Aug 2023 08:36:08 +0200 Subject: [PATCH] Check if photo picker available --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index ca8f26d0d7..74abbfbeaf 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -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()