diff --git a/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateMultiChoiceDialogAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateMultiChoiceDialogAdapter.kt index de415fe97d..6fa4dc4ca8 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateMultiChoiceDialogAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/QuadStateMultiChoiceDialogAdapter.kt @@ -94,7 +94,7 @@ internal class QuadStateMultiChoiceDialogAdapter( ) { 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.titleView.text = items[position] holder.itemView.background = dialog.getItemSelector()