From b65c6dbb2c55bc91de34b4fa325641c0aed6b601 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 28 Dec 2015 12:48:15 +0100 Subject: [PATCH] Fixed a bug where the overflow card appear animation would get stuck Bug: 24547258 Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9 --- .../systemui/statusbar/ActivatableNotificationView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java index da3cd54a91e30..9958b960b93fc 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ActivatableNotificationView.java @@ -608,8 +608,6 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView onFinishedRunnable.run(); } if (!mWasCancelled) { - mAppearAnimationFraction = -1; - setOutlineRect(null); enableAppearDrawing(false); } } @@ -630,6 +628,7 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView private void cancelAppearAnimation() { if (mAppearAnimator != null) { mAppearAnimator.cancel(); + mAppearAnimator = null; } } @@ -735,6 +734,8 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView mDrawingAppearAnimation = enable; if (!enable) { setContentAlpha(1.0f); + mAppearAnimationFraction = -1; + setOutlineRect(null); } invalidate(); }