Skip to content

Commit 15feb68

Browse files
John WangAndroid (Google) Code Review
authored andcommitted
Merge "Set provider name in airplane mode." into jb-dev
2 parents e601efd + 290e1c9 commit 15feb68

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,16 @@ protected void pollStateDone() {
343343
// new ERI text
344344
if (ss.getState() == ServiceState.STATE_IN_SERVICE) {
345345
eriText = phone.getCdmaEriText();
346+
} else if (ss.getState() == ServiceState.STATE_POWER_OFF) {
347+
eriText = phone.mIccRecords.getServiceProviderName();
348+
if (TextUtils.isEmpty(eriText)) {
349+
// Sets operator alpha property by retrieving from
350+
// build-time system property
351+
eriText = SystemProperties.get("ro.cdma.home.operator.alpha");
352+
}
346353
} else {
347354
// Note that ServiceState.STATE_OUT_OF_SERVICE is valid used
348-
// for
349-
// mRegistrationState 0,2,3 and 4
355+
// for mRegistrationState 0,2,3 and 4
350356
eriText = phone.getContext()
351357
.getText(com.android.internal.R.string.roamingTextSearching).toString();
352358
}

0 commit comments

Comments
 (0)