[CD Taskbar] Set correct window type for TaskbarActivityContext on primary/secondary displays
Modified TaskbarActivityContext to be aware of the display it's on (primary or secondary). This allows it to set the correct layoutParams.windowType for the Taskbar view, using TYPE_NAVIGATION_BAR for the primary display (the standard Taskbar) and TYPE_NAVIGATION_BAR_PANEL for secondary displays. Bug: 385202874 Test: Manual Flag: EXEMPT not adding behavior Change-Id: I5addf45b6099d3ddcf8315a541b69d2f67bace7d
This commit is contained in:
1 parent
179403d37d
commit
bdd44ef1cc
2 files changed
+13
-6
No files matched your search
@@ -776,7 +776,7 @@ public class TaskbarManager {
|
||||
private TaskbarActivityContext createTaskbarActivityContext(DeviceProfile dp, int displayId) {
|
||||
TaskbarActivityContext newTaskbar = new TaskbarActivityContext(mWindowContext,
|
||||
mNavigationBarPanelContext, dp, mDefaultNavButtonController,
|
||||
mUnfoldProgressProvider, mDesktopVisibilityController);
|
||||
mUnfoldProgressProvider, mDesktopVisibilityController, isDefaultDisplay(displayId));
|
||||
|
||||
addTaskbarToMap(displayId, newTaskbar);
|
||||
return newTaskbar;
|
||||
@@ -824,6 +824,10 @@ public class TaskbarManager {
|
||||
addTaskbarRootLayoutToMap(displayId, newTaskbarRootLayout);
|
||||
}
|
||||
|
||||
private boolean isDefaultDisplay(int displayId) {
|
||||
return displayId == getDefaultDisplayId();
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the root layout of the taskbar for the specified display.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user