Remove callback when RoomProfileFragment is destroyed
This commit is contained in:
parent
2f06095273
commit
2c2349aa63
@ -207,6 +207,7 @@ class RoomProfileFragment :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroyView() {
|
override fun onDestroyView() {
|
||||||
|
roomProfileController.callback = null
|
||||||
views.matrixProfileAppBarLayout.removeOnOffsetChangedListener(appBarStateChangeListener)
|
views.matrixProfileAppBarLayout.removeOnOffsetChangedListener(appBarStateChangeListener)
|
||||||
views.matrixProfileRecyclerView.cleanup()
|
views.matrixProfileRecyclerView.cleanup()
|
||||||
appBarStateChangeListener = null
|
appBarStateChangeListener = null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user