diff options
| author | 2023-01-17 15:49:22 +0100 | |
|---|---|---|
| committer | 2023-01-17 16:04:44 +0100 | |
| commit | 9c36b2e955cf7e6f6a6b2c1b9962e8cc3e5e5353 (patch) | |
| tree | ebfdefebf840a00fccae16197174e2908e30ae58 | |
| parent | ee0c2b11c0a164e58eec7f5a075948890d67d208 (diff) | |
Split-shade: show status bar earlier when closing shade
There was already a mechanism do start showing the status bar given a
certain shade expansion, but it was disabled for split shade.
This would make the status bar only show after the shade had been fully
closed.
I removed the restriction, and now it works as expected.
Test: Manually on-device. See video in comment.
Fixes: 245613188
Change-Id: I0796881bc868ebdcc57f3b52ac57ac584b16f5bd
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java index ecaabce70f8a..020045e603fa 100644 --- a/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/shade/NotificationPanelViewController.java @@ -4141,9 +4141,7 @@ public final class NotificationPanelViewController implements Dumpable { } private void updateStatusBarIcons() { - boolean showIconsWhenExpanded = - (isPanelVisibleBecauseOfHeadsUp() || mIsFullWidth) - && getExpandedHeight() < getOpeningHeight(); + boolean showIconsWhenExpanded = getExpandedHeight() < getOpeningHeight(); if (showIconsWhenExpanded && isOnKeyguard()) { showIconsWhenExpanded = false; } @@ -4210,7 +4208,7 @@ public final class NotificationPanelViewController implements Dumpable { && mHeadsUpAppearanceController.shouldBeVisible()) { return false; } - return !mIsFullWidth || !mShowIconsWhenExpanded; + return !mShowIconsWhenExpanded; } private void onQsPanelScrollChanged(int scrollY) { |