mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 19:36:08 +03:00
Font sizes shouldn't be clickable while following system
Change-Id: I70590e07bb57132cb0dd79fac4c227822c785a87
This commit is contained in:
parent
5726c769ec
commit
c500a19604
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue