Merge "Check the bubble bar maximum so it is not cut off." into main

This commit is contained in:
Mykola Podolian
2025-04-23 17:00:38 -07:00
committed by Android (Google) Code Review
@@ -1229,6 +1229,11 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
} else {
taskbarWindowSize = deviceProfile.taskbarHeight + deviceProfile.getTaskbarOffsetY();
}
if (mBubbleControllers != null) {
int bubbleBarMaxHeight = mBubbleControllers.bubbleBarViewController
.getBubbleBarWithFlyoutMaximumHeight();
taskbarWindowSize = Math.max(taskbarWindowSize, bubbleBarMaxHeight);
}
mActivity.setTaskbarWindowSize(taskbarWindowSize);
mTaskbarNavButtonTranslationY.updateValue(-deviceProfile.getTaskbarOffsetY());
}