From 0e41dea0b36f270a7cd22749c50a91b90f3373b5 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 25 Aug 2014 13:55:06 +0200 Subject: Fixed a bug where animations were generated when closed. Bug: 17248206 Change-Id: I4376e1eede125ade71c09b2c1cd6ae64ad617230 --- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 1469d73..ce17795 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -1913,7 +1913,9 @@ public class NotificationStackScrollLayout extends ViewGroup @Override public void onReset(ExpandableView view) { - mRequestViewResizeAnimationOnLayout = true; + if (mIsExpanded && mAnimationsEnabled) { + mRequestViewResizeAnimationOnLayout = true; + } mStackScrollAlgorithm.onReset(view); } -- cgit v1.1