Fixed being able to select all on a collasped category

This commit is contained in:
Jay 2020-05-08 22:49:12 -04:00
parent 5718b9e7d9
commit 6e8c285646

View File

@ -164,8 +164,8 @@ class LibraryHeaderItem(
else R.drawable.ic_expand_less_24dp) else R.drawable.ic_expand_less_24dp)
when { when {
adapter.mode == SelectableAdapter.Mode.MULTI -> { adapter.mode == SelectableAdapter.Mode.MULTI -> {
checkboxImage.visible() checkboxImage.visibleIf(!category.isHidden)
expandImage.invisible() expandImage.visibleIf(category.isHidden && !adapter.isSingleCategory)
updateButton.gone() updateButton.gone()
catProgress.gone() catProgress.gone()
setSelection() setSelection()