summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-08-29 15:46:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-29 15:46:45 -0700
commit03605fa832ea42dedca00fc7798a6da6c8a6c8a3 (patch)
tree1636cc7ff44cb39774c56d95c6799a71d296f13a /telephony
parent2a45102186a25877df04404d591171b2b2e85626 (diff)
parent43c3204067ba65b498713cf3f4c5fce9e024d897 (diff)
downloadframeworks_base-03605fa832ea42dedca00fc7798a6da6c8a6c8a3.zip
frameworks_base-03605fa832ea42dedca00fc7798a6da6c8a6c8a3.tar.gz
frameworks_base-03605fa832ea42dedca00fc7798a6da6c8a6c8a3.tar.bz2
Merge "Fix leak in SIM ready registrants"
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
index 134227a..e92a276 100644
--- a/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
+++ b/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
@@ -39,6 +39,7 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
CDMALTEPhone mCdmaLtePhone;
private ServiceState mLteSS; // The last LTE state from Voice Registration
+ private boolean mNeedToRegForSimLoaded = true;
public CdmaLteServiceStateTracker(CDMALTEPhone phone) {
super(phone);
@@ -71,7 +72,10 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
isSubscriptionFromRuim = false;
// Register SIM_RECORDS_LOADED dynamically.
// This is to avoid confilct with RUIM_READY scenario)
- phone.mIccRecords.registerForRecordsLoaded(this, EVENT_SIM_RECORDS_LOADED, null);
+ if (mNeedToRegForSimLoaded) {
+ phone.mIccRecords.registerForRecordsLoaded(this, EVENT_SIM_RECORDS_LOADED, null);
+ mNeedToRegForSimLoaded = false;
+ }
pollState();
// Signal strength polling stops when radio is off.
queueNextSignalStrengthPoll();