Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3571da3 authored by Sandeep Gutta's avatar Sandeep Gutta Committed by Steve Kondik
Browse files

MSIM: Use SIM specific subId for setMccMnc

While updating MccMnc value use the subId corresponds
to the SIM slotId.

Change-Id: Ifd7295a264f48e1210d87cb83ac76f5ad46df356
CRs-Fixed: 956103
parent 8b477da8
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1429,11 +1429,14 @@ public class SIMRecords extends IccRecords {
        if (!TextUtils.isEmpty(operator)) {
            log("onAllRecordsLoaded set 'gsm.sim.operator.numeric' to operator='" +
                    operator + "'");
            log("update icc_operator_numeric=" + operator);
            mTelephonyManager.setSimOperatorNumericForPhone(
                    mParentApp.getPhoneId(), operator);
            final SubscriptionController subController = SubscriptionController.getInstance();
            subController.setMccMnc(operator, subController.getDefaultSmsSubId());
            int[] subId = subController.getSubId(mParentApp.getPhoneId());
            if (subId != null && subId.length > 0) {
                subController.setMccMnc(operator, subId[0]);
                log("update icc_operator_numeric = " + operator + " subId = " + subId[0]);
            }
        } else {
            log("onAllRecordsLoaded empty 'gsm.sim.operator.numeric' skipping");
        }