Fixed audio route changes in outgoing call not working with TelecomManager enabled

This commit is contained in:
Sylvain Berfini 2022-03-11 11:02:59 +01:00
parent c40b2e753e
commit 2df68f8cf2

View file

@ -70,8 +70,8 @@ class NativeCallWrapper(var callId: String) : Connection() {
val call = getCall()
if (call != null) {
if (getState() != STATE_ACTIVE) {
Log.w("[Connection] Call state isn't STATE_ACTIVE, ignoring mute mic & audio route directive from TelecomManager")
if (getState() != STATE_ACTIVE && getState() != STATE_DIALING) {
Log.w("[Connection] Call state isn't STATE_ACTIVE or STATE_DIALING, ignoring mute mic & audio route directive from TelecomManager")
return
}