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

Commit da97cff8 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

am: 002ad625

Change-Id: I1f8c60dac95bb47280e68e3b9f7a1a42c485f909
parents a28735a8 002ad625
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);
    }