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

Commit 7e12cf03 authored by Wink Saville's avatar Wink Saville Committed by Android (Google) Code Review
Browse files

Merge "Improve sim ready event handling for CdmaLte." into jb-dev

parents fca91a8e 8f669f49
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -579,10 +579,14 @@ public class IccCard {
            mHandler.sendMessage(mHandler.obtainMessage(EVENT_CARD_ADDED, null));
        }

        // Call onReady only when SIM or RUIM card becomes ready (not NV)
        // Call onReady Record(s) on the IccCard becomes ready (not NV)
        if (oldState != State.READY && newState == State.READY &&
                (is3gpp || isSubscriptionFromIccCard)) {
            if (!(mIccFileHandler instanceof CdmaLteUiccFileHandler)) {
                // CdmaLteUicc File Handler deals with both USIM and CSIM.
                // Do not lock onto one AID for now.
                mIccFileHandler.setAid(getAid());
            }
            mIccRecords.onReady();
        }
    }
+9 −2
Original line number Diff line number Diff line
@@ -293,8 +293,15 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
                        EVENT_RUIM_RECORDS_LOADED, null);
                mNeedToRegForRuimLoaded = false;
            }

            if (phone.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE) {
                // Subscription will be read from SIM I/O
                if (DBG) log("Receive EVENT_RUIM_READY");
                pollState();
            } else {
                if (DBG) log("Receive EVENT_RUIM_READY and Send Request getCDMASubscription.");
                getSubscriptionInfoAndStartPollingThreads();
            }
            phone.prepareEri();
            break;