From 7ca52ca9bfe6e8cac5a74b0939b812e4f8568efa Mon Sep 17 00:00:00 2001 From: Jay Aliomer Date: Thu, 1 Jul 2021 12:37:16 -0400 Subject: [PATCH] Show shade footer when hun is posted while shade is open When the shade is open, the footer show always show when the number of notifications is > 0 Empty shade takes visibility state doesnt represent the shade state and is updated afterwards Fixes: 192370096 Test: visual Change-Id: I8442b6ce8e3fba85967d1a3e3392d820dc931e91 --- .../notification/stack/NotificationStackScrollLayout.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java index ba2f555f79299..46dedfeae8387 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java @@ -682,8 +682,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable boolean showDismissView = mClearAllEnabled && mController.hasActiveClearableNotifications(ROWS_ALL); RemoteInputController remoteInputController = mRemoteInputManager.getController(); - boolean showFooterView = (showDismissView || mController.hasActiveNotifications()) - && mEmptyShadeView.getVisibility() == GONE + boolean showFooterView = (showDismissView || getVisibleNotificationCount() > 0) && mStatusBarState != StatusBarState.KEYGUARD && !mUnlockedScreenOffAnimationController.isScreenOffAnimationPlaying() && (remoteInputController == null || !remoteInputController.isRemoteInputActive());