mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-20 09:58:28 +00:00
Fixed deadlock when receiving call
This commit is contained in:
parent
3ea3ff288b
commit
d30f7ba5ba
1 changed files with 2 additions and 1 deletions
|
|
@ -54,8 +54,9 @@ class TelecomCallControlCallback constructor(
|
||||||
Log.i("$TAG Call [${call.remoteAddress.asStringUriOnly()}] state changed [$state]")
|
Log.i("$TAG Call [${call.remoteAddress.asStringUriOnly()}] state changed [$state]")
|
||||||
if (state == Call.State.Connected) {
|
if (state == Call.State.Connected) {
|
||||||
if (call.dir == Call.Dir.Incoming) {
|
if (call.dir == Call.Dir.Incoming) {
|
||||||
|
val videoEnabled = call.currentParams.isVideoEnabled
|
||||||
scope.launch {
|
scope.launch {
|
||||||
val type = if (call.currentParams.isVideoEnabled) {
|
val type = if (videoEnabled) {
|
||||||
CallAttributesCompat.CALL_TYPE_VIDEO_CALL
|
CallAttributesCompat.CALL_TYPE_VIDEO_CALL
|
||||||
} else {
|
} else {
|
||||||
CallAttributesCompat.CALL_TYPE_AUDIO_CALL
|
CallAttributesCompat.CALL_TYPE_AUDIO_CALL
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue