Cleanup listener
This commit is contained in:
parent
00d0c34363
commit
907fa35547
|
@ -48,6 +48,7 @@ class BreadcrumbsFragment @Inject constructor(
|
||||||
|
|
||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
breadcrumbsRecyclerView.cleanup()
|
breadcrumbsRecyclerView.cleanup()
|
||||||
|
breadcrumbsController.listener = null
|
||||||
super.onDestroyView()
|
super.onDestroyView()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +57,7 @@ class BreadcrumbsFragment @Inject constructor(
|
||||||
breadcrumbsController.listener = this
|
breadcrumbsController.listener = this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO Use invalidate() ?
|
||||||
private fun renderState(state: BreadcrumbsViewState) {
|
private fun renderState(state: BreadcrumbsViewState) {
|
||||||
breadcrumbsController.update(state)
|
breadcrumbsController.update(state)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue