Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Make entire SettingsRow toggle the setting (closes #455) #459

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down