Merge "Fix signal cluster animation leak" into nyc-dev
am: 8891ae1f7f
* commit '8891ae1f7f69a1d1b203477bea01674c98af1141':
Fix signal cluster animation leak
Change-Id: I00e58b5fc254f68c1f2a0549ececd01a31278cfb
This commit is contained in:
@@ -299,6 +299,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();
|
||||
@@ -395,6 +403,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;
|
||||
|
||||
Reference in New Issue
Block a user