Empty notification shade state.
Bug: 16483230
Change-Id: I7953a7954cae12124146f462ed8c0dc44769a38f
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 53c4740..98bb591 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -147,6 +147,8 @@
private boolean mHeaderAnimatingIn;
private ObjectAnimator mQsContainerAnimator;
+ private boolean mShadeEmpty;
+
public NotificationPanelView(Context context, AttributeSet attrs) {
super(context, attrs);
mSystemIconsCopy = new MirrorView(context);
@@ -879,6 +881,7 @@
mQsContainer.setVisibility(
mKeyguardShowing && !expandVisually ? View.INVISIBLE : View.VISIBLE);
mScrollView.setTouchEnabled(mQsExpanded);
+ updateEmptyShadeView();
}
private void setQsExpansion(float height) {
@@ -1615,4 +1618,15 @@
}
updateKeyguardStatusBarVisibility();
}
+
+ public void setShadeEmpty(boolean shadeEmpty) {
+ mShadeEmpty = shadeEmpty;
+ updateEmptyShadeView();
+ }
+
+ private void updateEmptyShadeView() {
+
+ // Hide "No notifications" in QS.
+ mNotificationStackScroller.updateEmptyShadeView(mShadeEmpty && !mQsExpanded);
+ }
}