From 09927d94bf68259ff9593a114c04e8c2d233b4b5 Mon Sep 17 00:00:00 2001 From: Jonathan Dick Date: Mon, 12 Jul 2021 10:26:55 -0400 Subject: [PATCH] Essentials: Port xamarin/Essentials#1734 https://github.com/xamarin/Essentials/pull/1734 --- src/Essentials/src/MediaPicker/MediaPicker.ios.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Essentials/src/MediaPicker/MediaPicker.ios.cs b/src/Essentials/src/MediaPicker/MediaPicker.ios.cs index 188aa40d3e32..7c5122a187f8 100644 --- a/src/Essentials/src/MediaPicker/MediaPicker.ios.cs +++ b/src/Essentials/src/MediaPicker/MediaPicker.ios.cs @@ -37,7 +37,7 @@ static async Task PhotoAsync(MediaPickerOptions options, bool photo, if (!UIImagePickerController.AvailableMediaTypes(sourceType).Contains(mediaType)) throw new FeatureNotSupportedException(); - if (!photo) + if (!photo && !pickExisting) await Permissions.EnsureGrantedAsync(); // Check if picking existing or not and ensure permission accordingly as they can be set independently from each other