diff --git a/app/src/main/java/com/duckduckgo/app/generalsettings/showonapplaunch/ShowOnAppLaunchActivity.kt b/app/src/main/java/com/duckduckgo/app/generalsettings/showonapplaunch/ShowOnAppLaunchActivity.kt index dcf525d34165..516dd2dd0820 100644 --- a/app/src/main/java/com/duckduckgo/app/generalsettings/showonapplaunch/ShowOnAppLaunchActivity.kt +++ b/app/src/main/java/com/duckduckgo/app/generalsettings/showonapplaunch/ShowOnAppLaunchActivity.kt @@ -69,15 +69,15 @@ class ShowOnAppLaunchActivity : DuckDuckGoActivity() { } private fun configureUiEventHandlers() { - binding.lastOpenedTabCheckListItem.setOnClickListener { + binding.lastOpenedTabCheckListItem.setClickListener { viewModel.onShowOnAppLaunchOptionChanged(LastOpenedTab) } - binding.newTabCheckListItem.setOnClickListener { + binding.newTabCheckListItem.setClickListener { viewModel.onShowOnAppLaunchOptionChanged(NewTabPage) } - binding.specificPageCheckListItem.setOnClickListener { + binding.specificPageCheckListItem.setClickListener { viewModel.onShowOnAppLaunchOptionChanged(SpecificPage(binding.specificPageUrlInput.text)) } diff --git a/common/common-ui/src/main/java/com/duckduckgo/common/ui/view/listitem/RadioListItem.kt b/common/common-ui/src/main/java/com/duckduckgo/common/ui/view/listitem/RadioListItem.kt index 9cd6a7bd49c3..ad7de3c62257 100644 --- a/common/common-ui/src/main/java/com/duckduckgo/common/ui/view/listitem/RadioListItem.kt +++ b/common/common-ui/src/main/java/com/duckduckgo/common/ui/view/listitem/RadioListItem.kt @@ -98,6 +98,7 @@ class RadioListItem @JvmOverloads constructor( } fun setClickListener(onClick: () -> Unit) { + binding.radioButton.setOnClickListener { onClick() } binding.itemContainer.setOnClickListener { onClick() } }