MvvmFragment::onEvent is not being called when the viewmodel sends an event via the event channel. When manually adding a listener to the channel it works, but only via a lambda or variable reference:
When passing the method directly it does not work:
viewModel.eventChannel.addListener(this::onEvent)
I think the bug may be in MvvmBindingFragment. viewModel.eventChannel.addListener(::onEvent) is called instead of viewModel.eventChannel.addListener(eventListener).
MvvmFragment::onEvent
is not being called when the viewmodel sends an event via the event channel. When manually adding a listener to the channel it works, but only via a lambda or variable reference:When passing the method directly it does not work:
I think the bug may be in
MvvmBindingFragment
.viewModel.eventChannel.addListener(::onEvent)
is called instead ofviewModel.eventChannel.addListener(eventListener)
.