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

Commit ea30cfca authored by Qiwen Zhao's avatar Qiwen Zhao Committed by Android Git Automerger
Browse files

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

* commit 'b63254cf':
  Don't stop outgoing calls if we are the foreground call.
parents 8df44561 b63254cf
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