code review
This commit is contained in:
parent
a272f4d4c6
commit
f1919be197
|
@ -57,7 +57,7 @@ class MatrixToBottomSheet :
|
|||
injector.inject(this)
|
||||
}
|
||||
|
||||
var weakReference = WeakReference<InteractionListener>(null)
|
||||
private var weakReference = WeakReference<InteractionListener>(null)
|
||||
|
||||
var interactionListener: InteractionListener?
|
||||
set(value) {
|
||||
|
|
|
@ -57,6 +57,13 @@ class SpaceExploreActivity : VectorBaseActivity<ActivitySimpleBinding>(), SpaceD
|
|||
}
|
||||
super.onFragmentAttached(fm, f, context)
|
||||
}
|
||||
|
||||
override fun onFragmentDetached(fm: FragmentManager, f: Fragment) {
|
||||
if (f is MatrixToBottomSheet) {
|
||||
f.interactionListener = null
|
||||
}
|
||||
super.onFragmentDetached(fm, f)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
|
Loading…
Reference in New Issue