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

Commit 15feb688 authored by John Wang's avatar John Wang Committed by Android (Google) Code Review
Browse files

Merge "Set provider name in airplane mode." into jb-dev

parents e601efd3 290e1c93
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -343,10 +343,16 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
                // new ERI text
                // new ERI text
                if (ss.getState() == ServiceState.STATE_IN_SERVICE) {
                if (ss.getState() == ServiceState.STATE_IN_SERVICE) {
                    eriText = phone.getCdmaEriText();
                    eriText = phone.getCdmaEriText();
                } else if (ss.getState() == ServiceState.STATE_POWER_OFF) {
                    eriText = phone.mIccRecords.getServiceProviderName();
                    if (TextUtils.isEmpty(eriText)) {
                        // Sets operator alpha property by retrieving from
                        // build-time system property
                        eriText = SystemProperties.get("ro.cdma.home.operator.alpha");
                    }
                } else {
                } else {
                    // Note that ServiceState.STATE_OUT_OF_SERVICE is valid used
                    // Note that ServiceState.STATE_OUT_OF_SERVICE is valid used
                    // for
                    // for mRegistrationState 0,2,3 and 4
                    // mRegistrationState 0,2,3 and 4
                    eriText = phone.getContext()
                    eriText = phone.getContext()
                            .getText(com.android.internal.R.string.roamingTextSearching).toString();
                            .getText(com.android.internal.R.string.roamingTextSearching).toString();
                }
                }