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

Commit e1bfdaab authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Ignore PhoneAccount capability for emergency RTT am: ebcf2052

am: a6c3c056

Change-Id: Ibe8d9887479814b53259b6baec77dcb1cf28a140
parents d97d3214 a6c3c056
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,