Skip to content
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

Bug on device "Xiaomi Mi 11 lite" #148

Closed
rom-bek opened this issue Mar 23, 2022 · 1 comment
Closed

Bug on device "Xiaomi Mi 11 lite" #148

rom-bek opened this issue Mar 23, 2022 · 1 comment

Comments

@rom-bek
Copy link

rom-bek commented Mar 23, 2022

Hi Ashish,

I appreciate your library! Thank you for this.
But it seems to be a bug on device mentioned above. I debugged my files and saw that in ChooserDialogFragment.java

private void populateList() {
    storagesList = new ArrayList<>();

    File storageDir = new File("/storage");
    String internalStoragePath = Environment.getExternalStorageDirectory().getAbsolutePath();

    File[] volumeList = storageDir.listFiles();

the storageDir.listFiles() return a null volumeList!
Could you check this please?

(By changing command "File storageDir = new File("/storage");" into "File storageDir = new File(Environment.getExternalStorageDirectory().getAbsolutePath().toString());" it seems to run)

Best regards
rom-bek

@rom-bek
Copy link
Author

rom-bek commented Mar 28, 2022

Bug already fixed by #127

@rom-bek rom-bek closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant