fix channel setting

This commit is contained in:
Kevin Hester 2021-03-05 14:14:17 +08:00
parent d15ff7ed36
commit 390413bd8a
3 changed files with 14 additions and 3 deletions

View file

@ -78,7 +78,6 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
/// Pull the latest data from the model (discarding any user edits)
private fun setGUIfromModel() {
val radioConfig = model.radioConfig.value
val channels = model.channels.value
binding.editableCheckbox.isChecked = false // start locked
@ -231,7 +230,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
shareChannel()
}
model.radioConfig.observe(viewLifecycleOwner, {
model.channels.observe(viewLifecycleOwner, {
setGUIfromModel()
})