From 907fa35547585629d457a2a6a297cb9236fecc04 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 12 Dec 2019 22:58:27 +0100 Subject: [PATCH] Cleanup listener --- .../riotx/features/home/room/breadcrumbs/BreadcrumbsFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/breadcrumbs/BreadcrumbsFragment.kt b/vector/src/main/java/im/vector/riotx/features/home/room/breadcrumbs/BreadcrumbsFragment.kt index b8e2cf7987..f84508f613 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/breadcrumbs/BreadcrumbsFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/breadcrumbs/BreadcrumbsFragment.kt @@ -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) }