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 committed 2024-11-27 17:12:25 -08:00
1 parent 3111daf2f1
commit 24521dd6f8
2 files changed
+6 -3

No files matched your search

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