Fixing leak on bottomSheetController callback

This commit is contained in:
Maxime NATUREL 2022-07-27 17:25:51 +02:00
parent 4f71741107
commit 9781656c1d
2 changed files with 1 additions and 1 deletions

View file

@ -33,7 +33,6 @@ class LiveLocationBottomSheetController @Inject constructor(
private val vectorDateFormatter: VectorDateFormatter,
private val stringProvider: StringProvider,
private val clock: Clock,
private val context: Context,
) : EpoxyController() {
interface Callback {

View file

@ -112,6 +112,7 @@ class LiveLocationMapViewFragment @Inject constructor() : VectorBaseFragment<Fra
override fun onDestroy() {
onSymbolClickListener?.let { symbolManager?.removeClickListener(it) }
bottomSheetController.callback = null
super.onDestroy()
}