mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Fixing leak on bottomSheetController callback
This commit is contained in:
parent
4f71741107
commit
9781656c1d
2 changed files with 1 additions and 1 deletions
|
@ -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 a new issue