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

Commit 86fda682 authored by Youming Ye's avatar Youming Ye Committed by paulye
Browse files

Reset mPendingUssd when mUssdSession is not null

Bug: 128640476
Change-Id: I2b5f7d36bbce83594b2bd5cc4688e8ffade50828
Test: Build
parent bf673d01
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1759,6 +1759,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {

        try {
            if (mUssdSession != null) {
                // Doesn't need mPendingUssd here. Listeners would use it if not null.
                mPendingUssd = null;
                mUssdSession.sendUssd(ussdString);
                AsyncResult.forMessage(response, null, null);
                response.sendToTarget();
@@ -1778,6 +1780,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {

            mUssdSession = mImsManager.makeCall(profile, callees, mImsUssdListener);
            mPendingUssd = response;
            if (DBG) log("pending ussd updated, " + mPendingUssd);
        } catch (ImsException e) {
            loge("sendUSSD : " + e);
            mPhone.sendErrorResponse(response, e);