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

Commit ba3cd5d9 authored by fionaxu's avatar fionaxu
Browse files

trigger carrier identification on SIM OTA

Bug: 73786449
Test: Manual
Change-Id: Ia0f2836c93deaf014b2aa9a5fffa4a18121fa549
parent 06bf7483
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -220,17 +220,18 @@ public class CarrierIdentifier extends Handler {
                }
                break;
            case ICC_CHANGED_EVENT:
                IccRecords newIccRecords = UiccController.getInstance().getIccRecords(
                        mPhone.getPhoneId(), UiccController.APP_FAM_3GPP);
                final IccRecords newIccRecords = mPhone.getIccRecords();
                if (mIccRecords != newIccRecords) {
                    if (mIccRecords != null) {
                        logd("Removing stale icc objects.");
                        mIccRecords.unregisterForSpnUpdate(this);
                        mIccRecords.unregisterForRecordsLoaded(this);
                        mIccRecords = null;
                    }
                    if (newIccRecords != null) {
                        logd("new Icc object");
                        newIccRecords.registerForSpnUpdate(this, SPN_OVERRIDE_EVENT, null);
                        newIccRecords.registerForRecordsLoaded(this, SIM_LOAD_EVENT, null);
                        mIccRecords = newIccRecords;
                    }
                }