mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 19:15:06 +01:00
Disable entire checkbox view when disabled (fixes #2989)
This commit is contained in:
parent
7b149425fa
commit
05d830eb58
@ -218,6 +218,9 @@ open class ExtendedNavigationView @JvmOverloads constructor(
|
|||||||
val item = items[position] as Item.CheckboxGroup
|
val item = items[position] as Item.CheckboxGroup
|
||||||
holder.check.setText(item.resTitle)
|
holder.check.setText(item.resTitle)
|
||||||
holder.check.isChecked = item.checked
|
holder.check.isChecked = item.checked
|
||||||
|
|
||||||
|
// Allow disabling the holder
|
||||||
|
holder.itemView.isClickable = item.enabled
|
||||||
holder.check.isEnabled = item.enabled
|
holder.check.isEnabled = item.enabled
|
||||||
}
|
}
|
||||||
is MultiStateHolder -> {
|
is MultiStateHolder -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user