|
|
@ -25,10 +25,10 @@ class SwitchSettingViewHolder(val binding: ListItemSettingSwitchBinding, adapter |
|
|
binding.textSettingDescription.text = "" |
|
|
binding.textSettingDescription.text = "" |
|
|
binding.textSettingDescription.visibility = View.GONE |
|
|
binding.textSettingDescription.visibility = View.GONE |
|
|
} |
|
|
} |
|
|
binding.switchWidget.isChecked = setting.isChecked |
|
|
|
|
|
binding.switchWidget.setOnCheckedChangeListener { _: CompoundButton, _: Boolean -> |
|
|
binding.switchWidget.setOnCheckedChangeListener { _: CompoundButton, _: Boolean -> |
|
|
adapter.onBooleanClick(item, bindingAdapterPosition, binding.switchWidget.isChecked) |
|
|
adapter.onBooleanClick(item, bindingAdapterPosition, binding.switchWidget.isChecked) |
|
|
} |
|
|
} |
|
|
|
|
|
binding.switchWidget.isChecked = setting.isChecked |
|
|
|
|
|
|
|
|
binding.switchWidget.isEnabled = setting.isEditable |
|
|
binding.switchWidget.isEnabled = setting.isEditable |
|
|
} |
|
|
} |
|
|
|