Android-DirectoryChooser icon indicating copy to clipboard operation
Android-DirectoryChooser copied to clipboard

Unable to navigate higher than root directory of internal storage

Open noel105 opened this issue 9 years ago • 3 comments

This issue exists on my Moto X Play running Android 6.0, specifically in the Snapprefs xposed module (http://forum.xda-developers.com/xposed/modules/app-snapprefs-ultimate-snapchat-utility-t2947254).

Clicking the "up" button while at the internal storage root directory does not advance any further up. I was attempting to access a folder on the SD card. Other apps have no issue reading, writing, or accessing the SD card, so I doubt the problem relates to read/write permissions.

The developer (MaaarZ) said he cannot fix it as the library isn't written by him and suggested I ask you.

Any help would be appreciated, thanks.

noel105 avatar Dec 24 '15 03:12 noel105

Just from the description I don't know why that would happen. This is the corresponding code, which is fairly defensive: https://github.com/passy/Android-DirectoryChooser/blob/488b559e3b5f984538c8a6e04de3420f9db7f7b3/library/src/main/java/net/rdrei/android/dirchooser/DirectoryChooserFragment.java#L190-L200

I don't know why there wouldn't be a selected directory, so it's most likely that there is no parent available for the caller. I guess the developer of that extension would have to jump into the debugger to figure this one out.

passy avatar Dec 24 '15 08:12 passy

Thanks, I'll let him know.

noel105 avatar Dec 24 '15 15:12 noel105

Worked for me: When you use builder, add builder.initialDirectory(android.os.Environment.getRootDirectory().toString());

LoliDeveloper avatar May 10 '21 07:05 LoliDeveloper