Merge "Prefer launching desktop tasks on freeform display" into main

This commit is contained in:
Treehugger Robot authored and Android (Google) Code Review committed 2025-04-02 16:54:41 -07:00
commit 343333ce8a
6 files changed
+68 -49

No files matched your search

@@ -756,8 +756,9 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar
}
private boolean shouldUpdateIconContentDescription(BubbleTextView btv) {
boolean isInDesktopMode = mControllers.taskbarDesktopModeController.isInDesktopMode(
DEFAULT_DISPLAY);
boolean isInDesktopMode =
mControllers.taskbarDesktopModeController.shouldShowDesktopTasksInTaskbar(
DEFAULT_DISPLAY);
boolean isAllAppsButton = btv instanceof TaskbarAllAppsButtonContainer;
boolean isDividerButton = btv instanceof TaskbarDividerContainer;
return isInDesktopMode && !isAllAppsButton && !isDividerButton;