update the hidden folders check
This commit is contained in:
parent
411ae47136
commit
830f456359
|
@ -114,9 +114,9 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
||||||
var hiddenCnt = 0
|
var hiddenCnt = 0
|
||||||
var unhiddenCnt = 0
|
var unhiddenCnt = 0
|
||||||
val positions = multiSelector.selectedPositions
|
val positions = multiSelector.selectedPositions
|
||||||
for (i in positions) {
|
positions.map { dirs[it].path }
|
||||||
val path = dirs[i].path
|
.forEach {
|
||||||
if (config.getIsFolderHidden(path))
|
if (config.getIsFolderHidden(it))
|
||||||
hiddenCnt++
|
hiddenCnt++
|
||||||
else
|
else
|
||||||
unhiddenCnt++
|
unhiddenCnt++
|
||||||
|
@ -124,6 +124,9 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
||||||
|
|
||||||
menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0
|
menu.findItem(R.id.cab_hide).isVisible = unhiddenCnt > 0
|
||||||
menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0
|
menu.findItem(R.id.cab_unhide).isVisible = hiddenCnt > 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue