make nomedia check recursive at DirectoryAdapter

This commit is contained in:
tibbi 2018-04-09 21:39:12 +02:00
parent fbe962d12e
commit 1a163ce56a
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
var hiddenCnt = 0
var unhiddenCnt = 0
selectedPositions.mapNotNull { dirs.getOrNull(it)?.path }.forEach {
if (File(it).containsNoMedia()) {
if (File(it).doesThisOrParentHaveNoMedia()) {
hiddenCnt++
} else {
unhiddenCnt++