Font sizes shouldn't be clickable while following system

Change-Id: I70590e07bb57132cb0dd79fac4c227822c785a87
This commit is contained in:
SpiritCroc 2022-08-09 17:03:43 +02:00
parent 5726c769ec
commit c500a19604

View file

@ -50,9 +50,11 @@ abstract class FontScaleItem : VectorEpoxyModel<FontScaleItem.Holder>(R.layout.i
holder.textView.isEnabled = enabled
holder.button.isChecked = selected
holder.button.isEnabled = enabled
holder.button.isClickable = enabled
holder.view.isClickable = enabled
holder.view.onClick {
holder.button.performClick()
if (enabled) {
holder.button.performClick()
}
}
holder.button.setOnCheckedChangeListener(checkChangeListener)
}