diff options
| author | 2021-07-01 12:37:16 -0400 | |
|---|---|---|
| committer | 2021-07-07 21:39:30 +0000 | |
| commit | 7ca52ca9bfe6e8cac5a74b0939b812e4f8568efa (patch) | |
| tree | 3ed5d1566d420f89e909db4d24d316c894b54784 | |
| parent | 920e1fd7a65f64ee0d8a58c6dc1343ff8c26bdfa (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java | 3 |
1 files changed, 1 insertions, 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 ba2f555f7929..46dedfeae838 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()); |