make nomedia check recursive at DirectoryAdapter

This commit is contained in:
tibbi 2018-04-09 21:39:12 +02:00
parent fbe962d12e
commit 1a163ce56a

View file

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