move to method
This commit is contained in:
parent
2890cb96ef
commit
9c6979ffa2
|
|
@ -65,6 +65,10 @@ abstract class MviBottomSheet<NavArgs, State, Action, VM>(
|
|||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
setupRenderState()
|
||||
}
|
||||
|
||||
private fun setupRenderState() {
|
||||
viewModel.state.observe(viewLifecycleOwner, Observer(this::renderState))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue