Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
0nko committed Aug 23, 2024
1 parent 1458d21 commit e6f425a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AppearanceActivity : DuckDuckGoActivity() {
private val viewModel: AppearanceViewModel by bindViewModel()
private val binding: ActivityAppearanceBinding by viewBinding()

private val forceDarkModeToggleListener = CompoundButton.OnCheckedChangeListener { view, isChecked ->
private val forceDarkModeToggleListener = CompoundButton.OnCheckedChangeListener { _, isChecked ->
viewModel.onForceDarkModeSettingChanged(isChecked)

TextAlertDialogBuilder(this)
Expand Down Expand Up @@ -87,6 +87,7 @@ class AppearanceActivity : DuckDuckGoActivity() {
private fun configureUiEventHandlers() {
binding.selectedThemeSetting.setClickListener { viewModel.userRequestedToChangeTheme() }
binding.changeAppIconSetting.setOnClickListener { viewModel.userRequestedToChangeIcon() }
binding.addressBarPositionSetting.setOnClickListener { viewModel.userRequestedToChangeAddressBarPosition() }
}

private fun observeViewModel() {
Expand Down

0 comments on commit e6f425a

Please sign in to comment.