nbsp-team / MaterialFilePicker

Picking files since 2015
Apache License 2.0
1.15k stars 229 forks source link

Error with back button #90

Closed vincent-herreros closed 6 years ago

vincent-herreros commented 6 years ago

Hello I have a problem with the back button on the toolbar. It works fine except when I'm at the start of my files, in "/storage/emulated/0". I've got a FATAL ERROR. I don't find any solution to my problem. Thanks for your times.

vasiledoe commented 6 years ago

Make sure you check for OK code in activity onResult like:

if (requestCode ==FilesHandler.YOUR_CODE&& resultCode == RESULT_OK) { // here get path name }

vincent-herreros commented 6 years ago

Thanks you !! Problem solved, and I had to add "?" on the Intent data.