1
0
Fork 0

For #8146: Extend radio buttons clickable area to title and description

master
mcarare 2020-02-06 14:38:27 +02:00 committed by Emily Kager
parent f5715df104
commit 9d993cae92
1 changed files with 15 additions and 0 deletions

View File

@ -54,9 +54,24 @@ class OnboardingTrackingProtectionViewHolder(view: View) : RecyclerView.ViewHold
updateTrackingProtectionPolicy()
}
view.protection_standard_title.setOnClickListener {
standardTrackingProtection.performClick()
}
view.protection_standard_description.setOnClickListener {
standardTrackingProtection.performClick()
}
strictTrackingProtection.onClickListener {
updateTrackingProtectionPolicy()
}
view.protection_strict_title.setOnClickListener {
strictTrackingProtection.performClick()
}
view.protection_strict_description.setOnClickListener {
strictTrackingProtection.performClick()
}
}
private fun updateRadioGroupState(view: View, isChecked: Boolean) {