OSDN Git Service

Fixed the animation of the no notifications view
authorSelim Cinek <cinek@google.com>
Tue, 16 Aug 2016 21:16:59 +0000 (14:16 -0700)
committerSelim Cinek <cinek@google.com>
Tue, 16 Aug 2016 21:46:47 +0000 (21:46 +0000)
The view was also animating when the shade wasn't expanded.

Change-Id: If235db60230525dda17c5df0681beec2ab01a79e
Fixes: 30880548

packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java

index 119d855..c8c4310 100644 (file)
@@ -3455,7 +3455,7 @@ public class NotificationStackScrollLayout extends ViewGroup
                         notifyHeightChangeListener(mEmptyShadeView);
                     }
                 };
-                if (mAnimationsEnabled) {
+                if (mAnimationsEnabled && mIsExpanded) {
                     mEmptyShadeView.setWillBeGone(true);
                     mEmptyShadeView.performVisibilityAnimation(false, onFinishedRunnable);
                 } else {