mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 05:59:17 +01:00
Possibly fixed crash with tristate preference
This commit is contained in:
parent
f56fe25010
commit
9f26d142e2
@ -94,7 +94,7 @@ internal class QuadStateMultiChoiceDialogAdapter(
|
|||||||
) {
|
) {
|
||||||
holder.isEnabled = !disabledIndices.contains(position)
|
holder.isEnabled = !disabledIndices.contains(position)
|
||||||
|
|
||||||
holder.controlView.state = states[currentSelection[position]]
|
holder.controlView.state = states.getOrNull(currentSelection[position]) ?: QuadStateCheckBox.State.UNCHECKED
|
||||||
holder.controlView.updateDrawable()
|
holder.controlView.updateDrawable()
|
||||||
holder.titleView.text = items[position]
|
holder.titleView.text = items[position]
|
||||||
holder.itemView.background = dialog.getItemSelector()
|
holder.itemView.background = dialog.getItemSelector()
|
||||||
|
Loading…
Reference in New Issue
Block a user