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

Commit 8f37dc99 authored by Etan Cohen's avatar Etan Cohen Committed by Pavel Zhamaitsiak
Browse files

VoLTE over CDMA phone: when FG call terminated by remote do NOT unhold BG call

Matches GSM and VoLTE over GSM. The BG call is restored but stays on hold.

Bug: 18375108
Change-Id: I8ac65a9b0070b98235ccc53f9de366a84a8f07da
parent feb6c37a
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -987,16 +987,6 @@ public final class ImsPhoneCallTracker extends CallTracker {

            }
            processCallStateChange(imsCall, ImsPhoneCall.State.DISCONNECTED, cause);

            if (reasonInfo.getCode() == ImsReasonInfo.CODE_USER_TERMINATED_BY_REMOTE) {
                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);
                }
            }
        }

        @Override