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

Commit e4b693b7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Restore old audio behavior for RTT emergency calls"

parents b1b03d15 1282fa9b
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);
    }