This repository has been archived by the owner on May 15, 2024. It is now read-only.
[Bug] FilePicker doesn't work on Redmi phones with MIUI 12, Android 11, workaround available #2085
Labels
bug
Something isn't working
Description
Steps to Reproduce
Expected Behavior
The path to the file is shown
Actual Behavior
The operation appears cancelled
Basic Information
The issue is known around some places, please see this issue on Android Image Cropper app and this Stackoverflow question.
MIUI interface appears to ignore the result when using
createChooser
. I tested the repo locally and if I comment out this line:Essentials/Xamarin.Essentials/FilePicker/FilePicker.android.cs
Line 25 in 35c5620
it works perfectly. Of course, this is not a solution, because users want to use their own apps for picking files - but on Xiaomi it's better than nothing.
How about putting the workaround for MIUI devices, for example using the method from here?
I can do the pull request, but will it be merged?
Thanks!
The text was updated successfully, but these errors were encountered: