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()
|
detachRenderersIfNeeded()
|
||||||
turnScreenOffAndKeyguardOn()
|
turnScreenOffAndKeyguardOn()
|
||||||
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
removeOnPictureInPictureModeChangedListener(pictureInPictureModeChangedInfoConsumer)
|
||||||
|
screenCaptureServiceConnection.unbind()
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,6 +47,10 @@ class ScreenCaptureServiceConnection @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun unbind() {
|
||||||
|
callback = null
|
||||||
|
}
|
||||||
|
|
||||||
fun stopScreenCapturing() {
|
fun stopScreenCapturing() {
|
||||||
screenCaptureAndroidService?.stopService()
|
screenCaptureAndroidService?.stopService()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user