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>) {
|
||||
val showHiddenFolders = mConfig.showHiddenFolders
|
||||
if (!showHiddenFolders) {
|
||||
val ignoreDirs = ArrayList<Directory>()
|
||||
for (d in dirs) {
|
||||
val dir = File(d.path)
|
||||
|
@ -155,4 +157,5 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
|||
|
||||
dirs.removeAll(ignoreDirs)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue