summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
index 988d537f6c2c..2b59c68a44b8 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
@@ -295,6 +295,14 @@ public class SignalClusterView
return;
}
// Clear out all old subIds.
+ for (PhoneState state : mPhoneStates) {
+ if (state.mMobile != null) {
+ state.maybeStopAnimatableDrawable(state.mMobile);
+ }
+ if (state.mMobileDark != null) {
+ state.maybeStopAnimatableDrawable(state.mMobileDark);
+ }
+ }
mPhoneStates.clear();
if (mMobileSignalGroup != null) {
mMobileSignalGroup.removeAllViews();
@@ -391,6 +399,11 @@ public class SignalClusterView
state.mMobile.setImageDrawable(null);
state.mLastMobileStrengthId = -1;
}
+ if (state.mMobileDark != null) {
+ state.maybeStopAnimatableDrawable(state.mMobileDark);
+ state.mMobileDark.setImageDrawable(null);
+ state.mLastMobileStrengthId = -1;
+ }
if (state.mMobileType != null) {
state.mMobileType.setImageDrawable(null);
state.mLastMobileTypeId = -1;