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

Commit 8ac8303f authored by Brad Ebinger's avatar Brad Ebinger Committed by Gerrit Code Review
Browse files

Merge "Update emergency mode for CDMA"

parents 9a3c4d6f 923a3440
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1650,9 +1650,9 @@ public class ServiceStateTracker extends Handler {
        mPollingContext[0]--;

        if (mPollingContext[0] == 0) {
            mNewSS.setEmergencyOnly(mEmergencyOnly);
            if (mPhone.isPhoneTypeGsm()) {
                updateRoamingState();
                mNewSS.setEmergencyOnly(mEmergencyOnly);
            } else {
                boolean namMatch = false;
                if (!isSidsAllZeros() && isHomeSid(mNewSS.getCdmaSystemId())) {
@@ -1794,6 +1794,7 @@ public class ServiceStateTracker extends Handler {

                //Denial reason if registrationState = 3
                int reasonForDenial = networkRegState.getReasonForDenial();
                mEmergencyOnly = networkRegState.isEmergencyEnabled();
                if (mPhone.isPhoneTypeGsm()) {

                    mGsmRoaming = regCodeIsRoaming(registrationState);
@@ -1801,7 +1802,6 @@ public class ServiceStateTracker extends Handler {

                    boolean isVoiceCapable = mPhone.getContext().getResources()
                            .getBoolean(com.android.internal.R.bool.config_voice_capable);
                    mEmergencyOnly = networkRegState.isEmergencyEnabled();
                } else {
                    int roamingIndicator = voiceSpecificStates.roamingIndicator;