do not share hidden folder files if showing hidden is disabled
This commit is contained in:
parent
4107d830a3
commit
f79b4d258b
|
@ -157,7 +157,7 @@ class ItemsAdapter(val activity: SimpleActivity, var mItems: MutableList<FileDir
|
|||
|
||||
private fun addFileUris(file: File, uris: ArrayList<Uri>) {
|
||||
if (file.isDirectory) {
|
||||
file.listFiles()?.forEach {
|
||||
file.listFiles()?.filter { if (config.showHidden) true else !it.isHidden }?.forEach {
|
||||
addFileUris(it, uris)
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue