mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-09-23 06:05:08 -04:00
do not share hidden folder files if showing hidden is disabled
This commit is contained in:
1 parent
4107d830a3
commit
f79b4d258b
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user