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
This commit is contained in:
Christian Göllner
2023-01-17 15:49:22 +01:00
parent ee0c2b11c0
commit 9c36b2e955

View File

@@ -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) {