summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wink Saville <wink@google.com> 2011-01-15 10:11:08 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-15 10:11:08 -0800
commita47aa87a19c733e28d9d2db1c4eb7f29d668db7b (patch)
tree97f81b87ee6caecf67a2f9a87de9ca647bb1f4c8
parent2e7fbd97e6f3682b20631d4f5262321dba6e2c6f (diff)
parentad8c32f3028d13869d4c494ae14193ceba3281af (diff)
Merge "Set mIsMinInfoReady and mCurrentOtasp before notifcations." into honeycomb
-rwxr-xr-xtelephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
index 17cf36dd2363..2c5aa3c9a83b 100755
--- a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
@@ -443,18 +443,21 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
mMin = cdmaSubscription[3];
mPrlVersion = cdmaSubscription[4];
Log.d(LOG_TAG,"GET_CDMA_SUBSCRIPTION MDN=" + mMdn);
- //Notify apps subscription info is ready
+
+ 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,