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

Commit 7d588377 authored by Ravindra Thattahalli Javaraiah's avatar Ravindra Thattahalli Javaraiah Committed by Linux Build Service Account
Browse files

Fix to exit ECBM when there is RAT change

When there is RAT change from CDMA to GSM send request to exit ECBM to
RIL and clean up the UI for ECBM before disposing CDMA phone object.

Change-Id: If5eac0d4d247ee88da4f602d5f3e0b1533fe7134
CRs-Fixed: 671156
parent 84721b22
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -232,6 +232,13 @@ public class CDMAPhone extends PhoneBase {
            mSST.unregisterForNetworkAttached(this); //EVENT_REGISTERED_TO_NETWORK
            mCi.unSetOnSuppServiceNotification(this);
            mCi.unregisterForExitEmergencyCallbackMode(this);
            if (mIsPhoneInEcmState) {
                exitEmergencyCallbackMode();
                mIsPhoneInEcmState = false;
                setSystemProperty(TelephonyProperties.PROPERTY_INECM_MODE, "false");
                // notify change
                sendEmergencyCallbackModeChange();
            }
            removeCallbacks(mExitEcmRunnable);

            mPendingMmis.clear();