diff options
author | Matt Garnes <matt@cyngn.com> | 2015-06-18 17:40:23 -0700 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2015-06-19 15:43:58 +0000 |
commit | b31cb54361435f2abf63fd102f9df9dd8fdd08c3 (patch) | |
tree | dc8f0e75f843326feef1860ab3d8c4a349d9aab0 /src/com/cyanogenmod/setupwizard/setup | |
parent | b72e820a966cd8ebb4cc9b6e6e93f79fde44304e (diff) | |
download | packages_apps_SetupWizard-b31cb54361435f2abf63fd102f9df9dd8fdd08c3.zip packages_apps_SetupWizard-b31cb54361435f2abf63fd102f9df9dd8fdd08c3.tar.gz packages_apps_SetupWizard-b31cb54361435f2abf63fd102f9df9dd8fdd08c3.tar.bz2 |
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
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java b/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java index 3950d74..af123e0 100644 --- a/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/ChooseDataSimPage.java @@ -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()) { |