mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-30 18:56:23 +00:00
Fixed deadlock
This commit is contained in:
parent
00fbfcc490
commit
d5e20c02fe
1 changed files with 6 additions and 6 deletions
|
|
@ -57,14 +57,14 @@ class TelecomCallControlCallback(
|
||||||
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) {
|
||||||
scope.launch {
|
|
||||||
val isVideo = LinphoneUtils.isVideoEnabled(call)
|
val isVideo = LinphoneUtils.isVideoEnabled(call)
|
||||||
Log.i("$TAG Answering ${if (isVideo) "video" else "audio"} call")
|
|
||||||
val type = if (isVideo) {
|
val type = if (isVideo) {
|
||||||
CallAttributesCompat.Companion.CALL_TYPE_VIDEO_CALL
|
CallAttributesCompat.Companion.CALL_TYPE_VIDEO_CALL
|
||||||
} else {
|
} else {
|
||||||
CallAttributesCompat.Companion.CALL_TYPE_AUDIO_CALL
|
CallAttributesCompat.Companion.CALL_TYPE_AUDIO_CALL
|
||||||
}
|
}
|
||||||
|
scope.launch {
|
||||||
|
Log.i("$TAG Answering ${if (isVideo) "video" else "audio"} call")
|
||||||
callControl.answer(type)
|
callControl.answer(type)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue