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
(cherry picked from commit b31cb54361
)
This commit is contained in:
committed by
Gerrit Code Review
parent
497ddd6b71
commit
616db63139
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user