Merge "CdmaLte: Use SPN from SIM card if SIM card is presend" into honeycomb-LTE
This commit is contained in:
@@ -551,7 +551,7 @@ public class ServiceState implements Parcelable {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setCdmaEriText(String longName) {
|
public void setOperatorAlphaLong(String longName) {
|
||||||
mOperatorAlphaLong = longName;
|
mOperatorAlphaLong = longName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -351,7 +351,14 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
|
|||||||
eriText = phone.getContext()
|
eriText = phone.getContext()
|
||||||
.getText(com.android.internal.R.string.roamingTextSearching).toString();
|
.getText(com.android.internal.R.string.roamingTextSearching).toString();
|
||||||
}
|
}
|
||||||
ss.setCdmaEriText(eriText);
|
ss.setOperatorAlphaLong(eriText);
|
||||||
|
}
|
||||||
|
if (cm.getSimState().isSIMReady()) {
|
||||||
|
// SIM is found on the device. Read the operator name from the card.
|
||||||
|
ss.setOperatorAlphaLong(phone.mIccRecords.getServiceProviderName());
|
||||||
|
|
||||||
|
// If SIM card is present, Eri will not be used. Turn it off
|
||||||
|
ss.setCdmaEriIconIndex(EriInfo.ROAMING_INDICATOR_OFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
String operatorNumeric;
|
String operatorNumeric;
|
||||||
|
|||||||
@@ -1017,7 +1017,7 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
|
|||||||
eriText = phone.getContext().getText(
|
eriText = phone.getContext().getText(
|
||||||
com.android.internal.R.string.roamingTextSearching).toString();
|
com.android.internal.R.string.roamingTextSearching).toString();
|
||||||
}
|
}
|
||||||
ss.setCdmaEriText(eriText);
|
ss.setOperatorAlphaLong(eriText);
|
||||||
}
|
}
|
||||||
|
|
||||||
String operatorNumeric;
|
String operatorNumeric;
|
||||||
|
|||||||
Reference in New Issue
Block a user