Remove callback when RoomProfileFragment is destroyed

This commit is contained in:
Maxime NATUREL 2023-01-23 15:35:33 +01:00
parent 2f06095273
commit 2c2349aa63

View file

@ -207,6 +207,7 @@ class RoomProfileFragment :
}
override fun onDestroyView() {
roomProfileController.callback = null
views.matrixProfileAppBarLayout.removeOnOffsetChangedListener(appBarStateChangeListener)
views.matrixProfileRecyclerView.cleanup()
appBarStateChangeListener = null