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

Commit 45d7a205 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

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

parents efba60b2 99c8520b
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() {