Archived
Further error handling. Also given the user the option to colour dietary preference icons. Colours have partially been derived from those used on stw-bremen.de but have all been processed through the theme builder on m3.material.io
This commit is contained in:
@@ -79,6 +79,14 @@ class SettingsFragment : AppFragment() {
|
||||
}
|
||||
}
|
||||
|
||||
// Set up switch for colouring dietary preferences
|
||||
binding.switchPrefColour.apply {
|
||||
isChecked = viewModel.preferenceColour
|
||||
setOnCheckedChangeListener { _, newValue ->
|
||||
viewModel.preferenceColour = newValue
|
||||
}
|
||||
}
|
||||
|
||||
// Set up switch for crash report opt-in
|
||||
binding.switchCrashlytics.apply {
|
||||
isChecked = viewModel.preferenceDataHandling
|
||||
|
||||
Reference in New Issue
Block a user