Make entire SettingsRow toggle the setting (closes #455) (#466)
* fixes #455 by referencing the entire SettingsSwitchRow instead of just the SettingsSwitchRowSwitch
* Fixed Switched having no OnClickListener anymore and therefore not working. Switches AND Rows now have an OnClickListener to change the setting.
* implemented requested changes from harambasicluka; (in onClickListener) checking if row is enabled before executing action
* fixed formatting that caused quickBuild to fail
* moved the isEnabled check to the row instead of switch
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
Showing
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsNotificationFragment.kt 14 additions, 0 deletions...coronawarnapp/ui/settings/SettingsNotificationFragment.kt
- Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt 5 additions, 0 deletions.../rki/coronawarnapp/ui/settings/SettingsTracingFragment.kt
Please register or sign in to comment