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

Commit 86228622 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Use getFullIccId() in SubscriptionInfoUpdater.

It already uses bchToString() to parse ICCID. It should also use
getFullIccId() when querying ICCID directly from IccRecords.

Bug: 25410213
Change-Id: I26fe470810821b7bd9cdd014ba4e1b8c63464a48
parent 0884e25c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -364,11 +364,11 @@ public class SubscriptionInfoUpdater extends Handler {
            logd("onRecieve: IccRecords null");
            return;
        }
        if (records.getIccId() == null) {
        if (records.getFullIccId() == null) {
            logd("onRecieve: IccID null");
            return;
        }
        mIccId[slotId] = records.getIccId();
        mIccId[slotId] = records.getFullIccId();

        if (isAllIccIdQueryDone()) {
            updateSubscriptionInfoByIccId();
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public class SubscriptionInfoUpdaterTest extends TelephonyTest {
        /* mock new sim got loaded and there is no sim loaded before */
        doReturn(null).when(mSubscriptionController)
                .getSubInfoUsingSlotIdWithCheck(eq(0), anyBoolean(), anyString());
        doReturn("89012604200000000000").when(mIccRecord).getIccId();
        doReturn("89012604200000000000").when(mIccRecord).getFullIccId();
        doReturn(FAKE_PLMN).when(mTelephonyManager).getSimOperatorNumericForPhone(0);
        Intent mIntent = new Intent(IccCardProxy.ACTION_INTERNAL_SIM_STATE_CHANGED);
        mIntent.putExtra(IccCardConstants.INTENT_KEY_ICC_STATE,