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

Commit 8b8cf0b8 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

Change-Id: I2cd4b14489cee1a64ced9df7c220daaa7f395e32
parents 13f08a2e e4b693b7
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
@@ -2303,11 +2303,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);
    }