Only adjust the hotseat if bubble bar is visible.

The change avoids setting up the hotseat if there is no bubble bar.

Fixes: 379809704
Test: EXEMPT bugfix
Flag: com.android.wm.shell.enable_bubble_bar

Change-Id: I26820e3a13a4eaceb0897e44852c0d70aa71918b
This commit is contained in:
mpodolian
2024-11-27 17:07:33 -08:00
parent 3111daf2f1
commit 24521dd6f8
2 changed files with 6 additions and 3 deletions

View File

@@ -227,7 +227,9 @@ public class TaskbarControllers {
bubbleControllers.bubbleBarViewController.getBubbleBarLocation();
boolean hiddenForBubbles =
bubbleControllers.bubbleBarViewController.isHiddenForNoBubbles();
uiController.adjustHotseatForBubbleBar(!hiddenForBubbles);
if (!hiddenForBubbles) {
uiController.adjustHotseatForBubbleBar(/* isBubbleBarVisible= */ true);
}
uiController.onBubbleBarLocationUpdated(location);
}, () -> uiController.onBubbleBarLocationUpdated(null));
// Notify that the ui controller has changed