From a9d3efd1940501bd4e9a7cff0b1ebacf0743c34e Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 16 Aug 2016 14:16:59 -0700 Subject: [PATCH] Fixed the animation of the no notifications view The view was also animating when the shade wasn't expanded. Change-Id: If235db60230525dda17c5df0681beec2ab01a79e Fixes: 30880548 --- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 2 +- 1 file changed, 1 insertion(+), 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 119d855c8eaab..c8c43101c90fd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -3455,7 +3455,7 @@ public class NotificationStackScrollLayout extends ViewGroup notifyHeightChangeListener(mEmptyShadeView); } }; - if (mAnimationsEnabled) { + if (mAnimationsEnabled && mIsExpanded) { mEmptyShadeView.setWillBeGone(true); mEmptyShadeView.performVisibilityAnimation(false, onFinishedRunnable); } else {