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

Commit 13f5f13d authored by Amit Mahajan's avatar Amit Mahajan Committed by Android (Google) Code Review
Browse files

Merge "Use operator name from CSIM record only when voiceRegState is IN_SERVICE." into lmp-mr1-dev

parents 9dd8bcd9 074c5830
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -413,7 +413,8 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
            boolean hasBrandOverride = mUiccController.getUiccCard() == null ? false :
                    (mUiccController.getUiccCard().getOperatorBrandOverride() != null);
            if (!hasBrandOverride && (mCi.getRadioState().isOn()) && (mPhone.isEriFileLoaded())) {
                String eriText;
                // Only when CDMA is in service, ERI will take effect
                String eriText = mSS.getOperatorAlphaLong();
                // Now the CDMAPhone sees the new ServiceState so it can get the
                // new ERI text
                if (mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE) {
@@ -425,7 +426,7 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
                        // build-time system property
                        eriText = SystemProperties.get("ro.cdma.home.operator.alpha");
                    }
                } else {
                } else if (mSS.getDataRegState() != ServiceState.STATE_IN_SERVICE) {
                    // Note that ServiceState.STATE_OUT_OF_SERVICE is valid used
                    // for mRegistrationState 0,2,3 and 4
                    eriText = mPhone.getContext()
@@ -435,7 +436,7 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
            }

            if (mUiccApplcation != null && mUiccApplcation.getState() == AppState.APPSTATE_READY &&
                    mIccRecords != null) {
                    mIccRecords != null && (mSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE)) {
                // SIM is found on the device. If ERI roaming is OFF, and SID/NID matches
                // one configured in SIM, use operator name from CSIM record.
                boolean showSpn =