Code review fixes.
This commit is contained in:
parent
166be43f23
commit
b358863a1e
|
@ -144,7 +144,7 @@ class VectorCallViewModel @AssistedInject constructor(
|
||||||
override fun onCallEnded(callId: String) {
|
override fun onCallEnded(callId: String) {
|
||||||
withState { state ->
|
withState { state ->
|
||||||
if (state.otherKnownCallInfo?.callId == callId) {
|
if (state.otherKnownCallInfo?.callId == callId) {
|
||||||
setState { copy(otherKnownCallInfo = null) }
|
setState { copy(otherKnownCallInfo = null, isSharingScreen = false) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_viewEvents.post(VectorCallViewEvents.StopScreenSharingService)
|
_viewEvents.post(VectorCallViewEvents.StopScreenSharingService)
|
||||||
|
|
|
@ -58,5 +58,6 @@ class ScreenCaptureServiceConnection @Inject constructor(
|
||||||
override fun onServiceDisconnected(className: ComponentName) {
|
override fun onServiceDisconnected(className: ComponentName) {
|
||||||
isBound = false
|
isBound = false
|
||||||
screenCaptureService = null
|
screenCaptureService = null
|
||||||
|
callback = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue