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

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

Merge "Set mIsMinInfoReady and mCurrentOtasp before notifcations." into honeycomb

parents 2e7fbd97 ad8c32f3
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -443,18 +443,21 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
                    mMin = cdmaSubscription[3];
                    mPrlVersion = cdmaSubscription[4];
                    Log.d(LOG_TAG,"GET_CDMA_SUBSCRIPTION MDN=" + mMdn);

                    mIsMinInfoReady = true;

                    int otaspMode = getOtasp();
                    int oldOtaspMode = mCurrentOtaspMode;
                    mCurrentOtaspMode = otaspMode;

                    // Notify apps subscription info is ready
                    if (cdmaForSubscriptionInfoReadyRegistrants != null) {
                        Log.d(LOG_TAG, "call cdmaForSubscriptionInfoReady.notifyRegistrants()");
                        cdmaForSubscriptionInfoReadyRegistrants.notifyRegistrants();
                    }
                    if (!mIsMinInfoReady) {
                        mIsMinInfoReady = true;
                    }
                    int otaspMode = getOtasp();
                    if (mCurrentOtaspMode != otaspMode) {
                    if (oldOtaspMode != mCurrentOtaspMode) {
                        Log.d(LOG_TAG, "call phone.notifyOtaspChanged old otaspMode=" +
                                mCurrentOtaspMode + " new otaspMode=" + otaspMode);
                        mCurrentOtaspMode = otaspMode;
                                oldOtaspMode + " new otaspMode=" + mCurrentOtaspMode);
                        phone.notifyOtaspChanged(mCurrentOtaspMode);
                    }
                    phone.getIccCard().broadcastIccStateChangedIntent(IccCard.INTENT_VALUE_ICC_IMSI,