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

Commit 2d2fa9e5 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Change to query ICC file handler directly from IccCard instead of from Phone obj.

Bug: 18115115
Change-Id: I34f6bb449d76aa5bc60fff8c0e070a0631e9d316
parent 66f08146
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -320,8 +320,18 @@ public class SubscriptionInfoUpdater extends Handler {
        logd("queryIccId: slotid=" + slotId);
        if (mFh[slotId] == null) {
            logd("Getting IccFileHandler");
            if (mPhone[slotId].getIccCard() != null) {
                mFh[slotId] = mPhone[slotId].getIccCard().getIccFileHandler();
            }
            /** Just in case file handler cannot be obtained from IccCard directly, we can use the
             * earlier way of getting it from phone */
            // TODO remove this if block
             if (mFh[slotId] == null) {
                logd("queryIccId: Could not get IccFileHandler directly from IccCard");
                mFh[slotId] = ((PhoneProxy) mPhone[slotId]).getIccFileHandler();
            }
        }

        if (mFh[slotId] != null) {
            String iccId = mIccId[slotId];
            if (iccId == null) {