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

Commit 57e72ee0 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fix abnormal state of mHoldSwitchingState in ImsPhoneCallTracker" am: 45c48a21

Change-Id: I67d1debbc4f3d9f085516879805d508ad89091f6
parents 8f3be673 45c48a21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1675,6 +1675,8 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            ImsCall callToHold = mForegroundCall.getImsCall();
            HoldSwapState oldHoldState = mHoldSwitchingState;
            mHoldSwitchingState = HoldSwapState.HOLDING_TO_ANSWER_INCOMING;
            ImsCall callExpectedToResume = mCallExpectedToResume;
            mCallExpectedToResume = mRingingCall.getImsCall();
            mForegroundCall.switchWith(mBackgroundCall);
            logHoldSwapState("holdActiveCallForWaitingCall");
            try {
@@ -1684,6 +1686,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
            } catch (ImsException e) {
                mForegroundCall.switchWith(mBackgroundCall);
                mHoldSwitchingState = oldHoldState;
                mCallExpectedToResume = callExpectedToResume;
                logHoldSwapState("holdActiveCallForWaitingCall - fail");
                throw new CallStateException(e.getMessage());
            }