summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-08-25 13:55:06 +0200
committerSelim Cinek <cinek@google.com>2014-08-25 13:55:06 +0200
commit0e41dea0b36f270a7cd22749c50a91b90f3373b5 (patch)
treea2e594990ca93600f5e8631e3378151c976bd016 /packages
parent2ee5f8ff5e418f5dae14a16e1079cd5016f23b35 (diff)
downloadframeworks_base-0e41dea0b36f270a7cd22749c50a91b90f3373b5.zip
frameworks_base-0e41dea0b36f270a7cd22749c50a91b90f3373b5.tar.gz
frameworks_base-0e41dea0b36f270a7cd22749c50a91b90f3373b5.tar.bz2
Fixed a bug where animations were generated when closed.
Bug: 17248206 Change-Id: I4376e1eede125ade71c09b2c1cd6ae64ad617230
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java4
1 files changed, 3 insertions, 1 deletions
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);
}