mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +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 vectorDateFormatter: VectorDateFormatter,
|
||||||
private val stringProvider: StringProvider,
|
private val stringProvider: StringProvider,
|
||||||
private val clock: Clock,
|
private val clock: Clock,
|
||||||
private val context: Context,
|
|
||||||
) : EpoxyController() {
|
) : EpoxyController() {
|
||||||
|
|
||||||
interface Callback {
|
interface Callback {
|
||||||
|
|
|
@ -112,6 +112,7 @@ class LiveLocationMapViewFragment @Inject constructor() : VectorBaseFragment<Fra
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
onSymbolClickListener?.let { symbolManager?.removeClickListener(it) }
|
onSymbolClickListener?.let { symbolManager?.removeClickListener(it) }
|
||||||
|
bottomSheetController.callback = null
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue