Skip to content

Commit

Permalink
#188 fix viewbinding bug too
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex009 committed Aug 8, 2022
1 parent f73686a commit 1fb46b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import dev.icerock.moko.mvvm.viewmodel.ViewModel

abstract class MvvmEventsFragment<VB : ViewBinding, VM, Listener : Any> :
MvvmFragment<VB, VM>() where VM : ViewModel, VM : EventsDispatcherOwner<Listener> {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)

@Suppress("UNCHECKED_CAST")
viewModel.eventsDispatcher.bind(viewLifecycleOwner, this as Listener)
Expand Down

0 comments on commit 1fb46b8

Please sign in to comment.