Fix incorrect retrieval of SIM Network Operator.
We were incorrectly passing the phone ID to TelephonyManager instead of the subscription ID. Pass the correct identifier to retrieve the network operator name. Change-Id: I266d2ce39c72db6e97eff5a36c5fec6242d516cc
This commit is contained in:
parent
b72e820a96
commit
b31cb54361
@ -262,7 +262,7 @@ public class ChooseDataSimPage extends SetupPage {
|
||||
|
||||
private void updateCarrierText(SubscriptionInfo subInfoRecord) {
|
||||
if (mIsAttached) {
|
||||
String name = mPhone.getNetworkOperatorName(subInfoRecord.getSimSlotIndex());
|
||||
String name = mPhone.getNetworkOperatorName(subInfoRecord.getSubscriptionId());
|
||||
ServiceState serviceState = mServiceStates.get(subInfoRecord.getSimSlotIndex());
|
||||
if (TextUtils.isEmpty(name)) {
|
||||
if (serviceState != null && serviceState.isEmergencyOnly()) {
|
||||
|
Loading…
Reference in New Issue
Block a user