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

Commit ebcf2052 authored by Hall Liu's avatar Hall Liu
Browse files

Ignore PhoneAccount capability for emergency RTT

When dialing an emergency call, ignore the PhoneAccount capability and
always dial as an RTT call if the call requested it as such.

Fixes: 124284287
Test: manual
Change-Id: I2f2c3dd6cf2f8db4a3d7c4a581db965e911877c2
parent 46d60dd3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1513,8 +1513,10 @@ public class CallsManager extends Call.ListenerBase
                            false)))) {
                        Log.d(this, "Outgoing call requesting RTT, rtt setting is %b",
                                isRttSettingOn());
                        if (accountToUse != null
                                && accountToUse.hasCapabilities(PhoneAccount.CAPABILITY_RTT)) {
                        if (callToUse.isEmergencyCall() || (accountToUse != null
                                && accountToUse.hasCapabilities(PhoneAccount.CAPABILITY_RTT))) {
                            // If the call requested RTT and it's an emergency call, ignore the
                            // capability and hope that the modem will deal with it somehow.
                            callToUse.createRttStreams();
                        }
                        // Even if the phone account doesn't support RTT yet,