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

Commit f8a5a95e authored by Libin.Tang@motorola.com's avatar Libin.Tang@motorola.com Committed by Pavel Zhamaitsiak
Browse files

IMS:autoresume the holding call to simulate CDMA network behavior

when default phone is CDMAPhone during voltecall.

Change-Id: I8bc363c0f3e9385d14c4a067ae055069e41081c1
parent bc1e4490
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1242,4 +1242,8 @@ public class ImsPhone extends ImsPhoneBase {
    public boolean isVtEnabled() {
        return mCT.isVtEnabled();
    }

    public Phone getDefaultPhone() {
        return mDefaultPhone;
    }
}
+3 −1
Original line number Diff line number Diff line
@@ -984,9 +984,11 @@ public final class ImsPhoneCallTracker extends CallTracker {
            processCallStateChange(imsCall, ImsPhoneCall.State.DISCONNECTED, cause);

            if (reasonInfo.getCode() == ImsReasonInfo.CODE_USER_TERMINATED) {
                if ((oldState == ImsPhoneCall.State.DISCONNECTING)
                Phone defaultPhone = mPhone.getDefaultPhone();
                if ((defaultPhone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA)
                        && (mForegroundCall.getState() == ImsPhoneCall.State.DISCONNECTED)
                        && (mBackgroundCall.getState() == ImsPhoneCall.State.HOLDING)) {
                    if (DBG) log("autoresume to simulate cdma network behavior");
                    sendEmptyMessage(EVENT_RESUME_BACKGROUND);
                }
            }