mirror of
https://github.com/element-hq/element-android
synced 2024-10-14 20:19:09 +00:00
Unbinding callback from Call screen when view is destroyed
This commit is contained in:
parent
fa8f72c909
commit
8667de423a
|
@ -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…
Reference in a new issue