-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed order of calls to properly close MediaPicker Activity / ViewController and set the picker result #21998
Changed order of calls to properly close MediaPicker Activity / ViewController and set the picker result #21998
Conversation
…ller and set the picker result
Hey there @Alex-Dobrynin! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
@dotnet-policy-service agree |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
will this be reviewed some day? |
Commenter does not have sufficient privileges for PR 21998 in repo dotnet/maui |
Somebody will review this? |
I've just run into this issue, its really painful since you have to wait out the result with a Would love to see this in soon! |
@Axemasta for now you may use this package MPowerKit.MediaPlugin, you will not have this issue there. It is a port of James Montemagno's MediaPlugin, but with some fixes |
Fixes this issue Alex-Dobrynin/Xamarin.Controls.ImageCropper#8
Shortly, at the moment of getting the result of mediapicker, the activity or viewcontroller remains opened. And if open another activity or viewcontroller right after the result of mediapicker you will not see any new activity/viewcontroller opened. So to fix this we need to change the order of calls:
Actual result: we need to put some Task.Delay after mediapicker result to be able open new activity/viewcontroller
Expected result: we able to open new activity/viewcontroller right after getting the picker result.
To reproduce it, you can try open new activity or viewcontroller from the topmost one (which is still mediapicker's activity/viewcontrolelr) right after the mediapicker result.
Affects only android/ios