Code review fixes.

This commit is contained in:
Onuray Sahin 2022-05-04 13:43:44 +03:00
parent 166be43f23
commit b358863a1e
2 changed files with 2 additions and 1 deletions

View file

@ -144,7 +144,7 @@ class VectorCallViewModel @AssistedInject constructor(
override fun onCallEnded(callId: String) {
withState { state ->
if (state.otherKnownCallInfo?.callId == callId) {
setState { copy(otherKnownCallInfo = null) }
setState { copy(otherKnownCallInfo = null, isSharingScreen = false) }
}
}
_viewEvents.post(VectorCallViewEvents.StopScreenSharingService)

View file

@ -58,5 +58,6 @@ class ScreenCaptureServiceConnection @Inject constructor(
override fun onServiceDisconnected(className: ComponentName) {
isBound = false
screenCaptureService = null
callback = null
}
}