xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.53k stars 506 forks source link

[Bug] [Android] Android 14 MediaPicker shows modally over a blank view #2102

Open IainS1986 opened 8 months ago

IainS1986 commented 8 months ago

Description

When using the MediaPicker.PickPhotoAsync() the Android 14 media picker is shown correctly, however the picker appears as a modal bottom sheet view - and because MediaPicker uses an Intermediary activity (I think) this modal gets shown over that activity, which is just blank.

So you end up with you app navigating to a blank activity with a media picker bottom sheet over the top of it.

Expected Behavior

The media picker bottom sheet should go over the Activity calling MediaPicker and not over an Intermediary activity

Actual Behavior

A new blank activity is navigated too first and then the bottom sheet is displayed over that,

Basic Information

Screenshots

Masked out possible private information...

Screenshot_20231102-115738

Screenshot_20231102-115745

IainS1986 commented 8 months ago

Have double checked and Android 13 shows a full screen picker, so I do think its a new issue with Android 14 now showing it as a bottom sheet modal.