Merge pull request #2591 from kapodamy/allow-pick-hidden-folders

show hidden directories in the file picker
This commit is contained in:
Tobias Groza 2019-09-04 22:56:05 +02:00 committed by GitHub
commit ede18ded40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,12 @@ public class FilePickerActivityHelper extends com.nononsenseapps.filepicker.File
super.onClickOk(view); super.onClickOk(view);
} }
@Override
protected boolean isItemVisible(@NonNull File file) {
if (file.isDirectory() && file.isHidden()) return true;
return super.isItemVisible(file);
}
public File getBackTop() { public File getBackTop() {
if (getArguments() == null) return Environment.getExternalStorageDirectory(); if (getArguments() == null) return Environment.getExternalStorageDirectory();