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

Commit 282bf75d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Enable account selection for MMI codes that involve "dialing"."

parents 56d6375e bc6cc803
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -575,7 +575,10 @@ public final class CallsManager extends Call.ListenerBase {
            return null;
        }

        if (phoneAccountHandle == null && accounts.size() > 1 && !isEmergencyCall) {
        boolean needsAccountSelection = phoneAccountHandle == null && accounts.size() > 1 &&
                !isEmergencyCall;

        if (needsAccountSelection) {
            // This is the state where the user is expected to select an account
            call.setState(CallState.PRE_DIAL_WAIT);
            extras.putParcelableList(android.telecom.Call.AVAILABLE_PHONE_ACCOUNTS, accounts);
@@ -586,7 +589,7 @@ public final class CallsManager extends Call.ListenerBase {
        call.setExtras(extras);

        // Do not add the call if it is a potential MMI code.
        if (isPotentialMMICode(handle) || isPotentialInCallMMICode) {
        if ((isPotentialMMICode(handle) || isPotentialInCallMMICode) && !needsAccountSelection) {
            call.addListener(this);
        } else {
            addCall(call);