Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c919d19 authored by Jimmy Wu's avatar Jimmy Wu
Browse files

Fix audio state issue for MT IMS call

The IMS audio routing may be via modem or via RTP stream. In case
via RTP stream, the CallAudioModeStateMachine should transit to
mVoipCallFocusState.

Test: Manual
Change-Id: Ida6a69b95fad45dfa388e034215556daba623ff2
parent a6f3cc3e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -276,9 +276,10 @@ public class CallAudioModeStateMachine extends StateMachine {
                    // This happens when an IMS call is answered by the in-call UI. Special case
                    // that we have to deal with for some reason.

                    // VOIP calls should never invoke this mechanism, so transition directly to
                    // the sim call focus state.
                    transitionTo(mSimCallFocusState);
                    // The IMS audio routing may be via modem or via RTP stream. In case via RTP
                    // stream, the state machine should transit to mVoipCallFocusState.
                    transitionTo(args.foregroundCallIsVoip
                            ? mVoipCallFocusState : mSimCallFocusState);
                    return HANDLED;
                default:
                    // The forced focus switch commands are handled by BaseState.