mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
show .nomedia folders if Show hidden folders is checked
This commit is contained in:
parent
ccf71496e2
commit
df5981f74c
1 changed files with 12 additions and 9 deletions
|
@ -143,6 +143,8 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun removeNoMediaFolders(dirs: MutableList<Directory>) {
|
private fun removeNoMediaFolders(dirs: MutableList<Directory>) {
|
||||||
|
val showHiddenFolders = mConfig.showHiddenFolders
|
||||||
|
if (!showHiddenFolders) {
|
||||||
val ignoreDirs = ArrayList<Directory>()
|
val ignoreDirs = ArrayList<Directory>()
|
||||||
for (d in dirs) {
|
for (d in dirs) {
|
||||||
val dir = File(d.path)
|
val dir = File(d.path)
|
||||||
|
@ -156,3 +158,4 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
dirs.removeAll(ignoreDirs)
|
dirs.removeAll(ignoreDirs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue