From 90b6a276bf9da4c91891fdb452fe5cda0ec716e2 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Fri, 3 Jun 2016 16:50:52 -0700 Subject: [PATCH] Fixed a flicker when closing QS without notifications Change-Id: I0ca13626a676d0adf427d95edd76dd1bd2228fdc Fixes: 28008271 --- .../statusbar/stack/NotificationStackScrollLayout.java | 4 +++- 1 file changed, 3 insertions(+), 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 f67e285a1b5bc..6fd1291473904 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -2084,7 +2084,9 @@ public class NotificationStackScrollLayout extends ViewGroup final ExpandableView firstChild = getFirstChildNotGone(); int firstChildMinHeight = firstChild != null ? firstChild.getIntrinsicHeight() - : mCollapsedSize; + : mEmptyShadeView != null + ? mEmptyShadeView.getMinHeight() + : mCollapsedSize; if (mOwnScrollY > 0) { firstChildMinHeight = Math.max(firstChildMinHeight - mOwnScrollY, mCollapsedSize); }