Fixed the animation of the no notifications view

The view was also animating when the shade wasn't expanded.

Change-Id: If235db60230525dda17c5df0681beec2ab01a79e
Fixes: 30880548
This commit is contained in:
Selim Cinek
2016-08-16 14:16:59 -07:00
parent f925b8df92
commit a9d3efd194

View 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 {