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

Commit ae7ee6ef authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Clear ImsPhoneCallTracker pending MO call on handover

If the call is handed over to CS before we receive an
onCallProgressing callback from the ImsService, clear the
pending MO call. This can happen during a silent IMS->CS
redial for emergency calls, for example.

Bug: 129727740
Test: atest FrameworksTelephonyTests
Change-Id: I88c785bd9b860f4196f28b68e71ee1ab2c40ba4d
parent 0fee01f6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3147,6 +3147,12 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
        }
        call.mConnections.clear();
        call.mState = ImsPhoneCall.State.IDLE;
        if (mPendingMO != null) {
            // If the call is handed over before moving to alerting (i.e. e911 CSFB redial), clear
            // pending MO here.
            logi("pending MO on handover, clearing...");
            mPendingMO = null;
        }
    }

    /* package */