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

Commit 002ad625 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Restore old audio behavior for RTT emergency calls" am: e4b693b7

am: 8b8cf0b8

Change-Id: I437244b02a4540ebe7f441de50e5887f78f27a68
parents 30932d16 8b8cf0b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1565,7 +1565,6 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,
                        getInCallToCsRttPipeForCs(), getCsToInCallRttPipeForCs());
                mWasEverRtt = true;
                if (isEmergencyCall()) {
                    mCallsManager.setAudioRoute(CallAudioState.ROUTE_SPEAKER, null);
                    mCallsManager.mute(false);
                }
            }
+0 −5
Original line number Diff line number Diff line
@@ -2308,11 +2308,6 @@ public class CallsManager extends Call.ListenerBase
      * speaker phone.
      */
    void setAudioRoute(int route, String bluetoothAddress) {
        if (hasEmergencyRttCall() && route != CallAudioState.ROUTE_SPEAKER) {
            Log.i(this, "In an emergency RTT call. Forcing route to speaker.");
            route = CallAudioState.ROUTE_SPEAKER;
            bluetoothAddress = null;
        }
        mCallAudioManager.setAudioRoute(route, bluetoothAddress);
    }