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

Commit b63254cf authored by Qiwen Zhao's avatar Qiwen Zhao Committed by Android (Google) Code Review
Browse files

Merge "Don't stop outgoing calls if we are the foreground call." into lmp-dev

parents bb907d48 d176650e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1063,6 +1063,13 @@ public final class CallsManager extends Call.ListenerBase {
            // have to change.
            Call liveCall = getFirstCallWithState(call, LIVE_CALL_STATES);

            if (call == liveCall) {
                // If the call is already the foreground call, then we are golden.
                // This can happen after the user selects an account in the PRE_DIAL_WAIT
                // state since the call was already populated into the list.
                return true;
            }

            if (hasMaximumOutgoingCalls()) {
                // Disconnect the current outgoing call if it's not an emergency call. If the user
                // tries to make two outgoing calls to different emergency call numbers, we will try