Fixing leak on bottomSheetController callback
This commit is contained in:
parent
4f71741107
commit
9781656c1d
|
@ -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 {
|
||||
|
|
|
@ -112,6 +112,7 @@ class LiveLocationMapViewFragment @Inject constructor() : VectorBaseFragment<Fra
|
|||
|
||||
override fun onDestroy() {
|
||||
onSymbolClickListener?.let { symbolManager?.removeClickListener(it) }
|
||||
bottomSheetController.callback = null
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue