From f096f7e4632a81528c87304228aa87eb12d8cee1 Mon Sep 17 00:00:00 2001 From: Tom Jason Schwanke Date: Sun, 14 Jun 2020 22:08:01 +0200 Subject: [PATCH] fixes #455 by referencing the entire SettingsSwitchRow instead of SettingsSwitchRowSwitch --- .../coronawarnapp/ui/settings/SettingsNotificationFragment.kt | 4 ++-- .../rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsNotificationFragment.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsNotificationFragment.kt index 2baecf1273c..08933a2b6df 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsNotificationFragment.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsNotificationFragment.kt @@ -63,10 +63,10 @@ class SettingsNotificationFragment : Fragment() { private fun setButtonOnClickListener() { // Notifications about risk status val updateRiskNotificationSwitch = - binding.settingsSwitchRowNotificationsRisk.settingsSwitchRowSwitch + binding.settingsSwitchRowNotificationsRisk.settingsSwitchRow // Notifications about test status val updateTestNotificationSwitch = - binding.settingsSwitchRowNotificationsTest.settingsSwitchRowSwitch + binding.settingsSwitchRowNotificationsTest.settingsSwitchRow // Settings val settingsRow = binding.settingsNotificationsCard.tracingStatusCardButton val goBack = diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt index 2b41203d1a0..56a17d8fb4e 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt @@ -92,7 +92,7 @@ class SettingsTracingFragment : Fragment(), } private fun setButtonOnClickListener() { - val switch = binding.settingsTracingSwitchRow.settingsSwitchRowSwitch + val switch = binding.settingsTracingSwitchRow.settingsSwitchRow val back = binding.settingsTracingHeader.headerButtonBack.buttonIcon val bluetooth = binding.settingsTracingStatusBluetooth.tracingStatusCardButton val connection = binding.settingsTracingStatusConnection.tracingStatusCardButton