am a47aa87a: Merge "Set mIsMinInfoReady and mCurrentOtasp before notifcations." into honeycomb
* commit 'a47aa87a19c733e28d9d2db1c4eb7f29d668db7b': Set mIsMinInfoReady and mCurrentOtasp before notifcations.
This commit is contained in:
@@ -443,18 +443,21 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
|
|||||||
mMin = cdmaSubscription[3];
|
mMin = cdmaSubscription[3];
|
||||||
mPrlVersion = cdmaSubscription[4];
|
mPrlVersion = cdmaSubscription[4];
|
||||||
Log.d(LOG_TAG,"GET_CDMA_SUBSCRIPTION MDN=" + mMdn);
|
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
|
// Notify apps subscription info is ready
|
||||||
if (cdmaForSubscriptionInfoReadyRegistrants != null) {
|
if (cdmaForSubscriptionInfoReadyRegistrants != null) {
|
||||||
|
Log.d(LOG_TAG, "call cdmaForSubscriptionInfoReady.notifyRegistrants()");
|
||||||
cdmaForSubscriptionInfoReadyRegistrants.notifyRegistrants();
|
cdmaForSubscriptionInfoReadyRegistrants.notifyRegistrants();
|
||||||
}
|
}
|
||||||
if (!mIsMinInfoReady) {
|
if (oldOtaspMode != mCurrentOtaspMode) {
|
||||||
mIsMinInfoReady = true;
|
|
||||||
}
|
|
||||||
int otaspMode = getOtasp();
|
|
||||||
if (mCurrentOtaspMode != otaspMode) {
|
|
||||||
Log.d(LOG_TAG, "call phone.notifyOtaspChanged old otaspMode=" +
|
Log.d(LOG_TAG, "call phone.notifyOtaspChanged old otaspMode=" +
|
||||||
mCurrentOtaspMode + " new otaspMode=" + otaspMode);
|
oldOtaspMode + " new otaspMode=" + mCurrentOtaspMode);
|
||||||
mCurrentOtaspMode = otaspMode;
|
|
||||||
phone.notifyOtaspChanged(mCurrentOtaspMode);
|
phone.notifyOtaspChanged(mCurrentOtaspMode);
|
||||||
}
|
}
|
||||||
phone.getIccCard().broadcastIccStateChangedIntent(IccCard.INTENT_VALUE_ICC_IMSI,
|
phone.getIccCard().broadcastIccStateChangedIntent(IccCard.INTENT_VALUE_ICC_IMSI,
|
||||||
|
|||||||
Reference in New Issue
Block a user