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

Commit 1282fa9b authored by Hall Liu's avatar Hall Liu
Browse files

Restore old audio behavior for RTT emergency calls

Don't force RTT emergency calls onto speakerphone anymore -- users may
want the emergency call to be discreet.

Fixes: 139703415
Test: manual
Change-Id: I01c948a5b08e8acd98bc9804beb820bbe9e48c33
parent 728c412a
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
@@ -2299,11 +2299,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);
    }