mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Code review fixes.
This commit is contained in:
parent
166be43f23
commit
b358863a1e
2 changed files with 2 additions and 1 deletions
|
@ -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 a new issue