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

Commit d3205573 authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 45d7a205: Merge "Once responded to a call, remove it from list of ringing calls" into lmp-dev

* commit '45d7a205':
  Once responded to a call, remove it from list of ringing calls
parents 76a123e9 45d7a205
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -140,12 +140,8 @@ final class Ringer extends CallsManagerListenerBase {
    private void onRespondedToIncomingCall(Call call) {
        // Only stop the ringer if this call is the top-most incoming call.
        if (getTopMostUnansweredCall() == call) {
            stopRinging();
            stopCallWaiting();
            removeFromUnansweredCall(call);
        }

        // We do not remove the call from mRingingCalls until the call state changes from
        // STATE_RINGING or the call is removed. see onCallStateChanged or onCallRemoved.
    }

    private Call getTopMostUnansweredCall() {