1
0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2024-11-22 19:12:45 +01:00

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();