From e4e63558d668845ae9b25bc9f6ee5b376d8788cc Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier <jglazier@google.com> Date: Fri, 13 Oct 2023 19:39:43 +0000 Subject: [PATCH] Add log line for when PropertyAnimator doesn't remove old animators Follow up from I2c59d58914d6eb0460712dcd3d6dd3c771368453 Bug: 290627350 Test: N/A Change-Id: Ib6355ab05f7a11ede036bd11611f8b1b557844e7 --- .../systemui/statusbar/notification/PropertyAnimator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/PropertyAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/PropertyAnimator.java index 8957f298f160..f98f39e3532c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/PropertyAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/PropertyAnimator.java @@ -20,6 +20,7 @@ import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.animation.PropertyValuesHolder; import android.animation.ValueAnimator; +import android.util.Log; import android.util.Property; import android.view.View; import android.view.animation.Interpolator; @@ -33,6 +34,7 @@ import com.android.systemui.statusbar.notification.stack.ViewState; * An animator to animate properties */ public class PropertyAnimator { + private static final String TAG = "PropertyAnimator"; /** * Set a property on a view, updating its value, even if it's already animating. @@ -123,6 +125,8 @@ public class PropertyAnimator { view.setTag(animatorTag, null); view.setTag(animationStartTag, null); view.setTag(animationEndTag, null); + } else { + Log.e(TAG, "Unexpected Animator set during onAnimationEnd. Not cleaning up."); } } }); -- GitLab