mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Unbinding callback from Call screen when view is destroyed
This commit is contained in:
parent
fa8f72c909
commit
8667de423a
2 changed files with 5 additions and 0 deletions
|
@ -241,6 +241,7 @@ class VectorCallActivity :
|
|||
detachRenderersIfNeeded()
|
||||
turnScreenOffAndKeyguardOn()
|
||||
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
||||
screenCaptureServiceConnection.unbind()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,10 @@ class ScreenCaptureServiceConnection @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
fun unbind() {
|
||||
callback = null
|
||||
}
|
||||
|
||||
fun stopScreenCapturing() {
|
||||
screenCaptureAndroidService?.stopService()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue