do not share hidden folder files if showing hidden is disabled

This commit is contained in:
tibbi 2017-06-21 19:37:48 +02:00
parent 4107d830a3
commit f79b4d258b
1 changed files with 1 additions and 1 deletions

View File

@ -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 {