mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 19:36:08 +03:00
Cleanup listener
This commit is contained in:
parent
00d0c34363
commit
907fa35547
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ class BreadcrumbsFragment @Inject constructor(
|
|||
|
||||
override fun onDestroyView() {
|
||||
breadcrumbsRecyclerView.cleanup()
|
||||
breadcrumbsController.listener = null
|
||||
super.onDestroyView()
|
||||
}
|
||||
|
||||
|
@ -56,6 +57,7 @@ class BreadcrumbsFragment @Inject constructor(
|
|||
breadcrumbsController.listener = this
|
||||
}
|
||||
|
||||
// TODO Use invalidate() ?
|
||||
private fun renderState(state: BreadcrumbsViewState) {
|
||||
breadcrumbsController.update(state)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue