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

Commit 1fe43dfe authored by Ravi Paluri's avatar Ravi Paluri Committed by Linux Build Service Account
Browse files

IMS-VT: Honour audio routing preferance for dialing call

Whenever there is a change in audio routing for dialing call,
honour the new audio routing preferance

Change-Id: I506ff38203a8b5e05a112dab9ed5b798220020a0
CRs-Fixed: 1012524
parent dff64e00
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1410,6 +1410,13 @@ public class CallsManager extends Call.ListenerBase
      * speaker phone.
      */
    void setAudioRoute(int route) {
        Call call = getDialingCall();
        if (call != null && call.getStartWithSpeakerphoneOn()) {
            /* There is a change in audio routing preferance for the call.
             * So, honour the new audio routing preferance.
             */
            call.setStartWithSpeakerphoneOn(false);
        }
        mCallAudioManager.setAudioRoute(route);
    }