Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Update MediaPicker.android.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Jan 24, 2023
1 parent 19e3f5c commit f654de5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Xamarin.Essentials/MediaPicker/MediaPicker.android.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ static Task<FileResult> PlatformCaptureVideoAsync(MediaPickerOptions options)
static async Task<FileResult> PlatformCaptureAsync(MediaPickerOptions options, bool photo)
{
await Permissions.EnsureGrantedAsync<Permissions.Camera>();

// StorageWrite no longer exists starting from Android API 33
if (!Platform.HasApiLevel(33))
await Permissions.EnsureGrantedAsync<Permissions.StorageWrite>();
Expand Down

0 comments on commit f654de5

Please sign in to comment.