mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Fixing missing call to timer.cancel() when view is detached
This commit is contained in:
parent
f44d8b0b20
commit
2c10d9dcaa
1 changed files with 5 additions and 0 deletions
|
@ -128,4 +128,9 @@ class LiveLocationRunningBannerView @JvmOverloads constructor(
|
|||
title.text = context.getString(R.string.location_share_live_view)
|
||||
subTitle.text = context.getString(R.string.location_share_live_until, viewState.formattedLocalTimeOfEndOfLive)
|
||||
}
|
||||
|
||||
override fun onDetachedFromWindow() {
|
||||
countDownTimer?.cancel()
|
||||
super.onDetachedFromWindow()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue