Allow to show pinned taskbar when Launcher is visible

This CL allows freeform-first devices to lock the taskbar in a pinned
state when Launcher is visible.

Bug: 361419732
Flag: com.android.window.flags.enter_desktop_by_default_on_freeform_displays
Test: DisplayControllerTest
Test: manual

Change-Id: Ic0d2740e33fee19c676d88aa2bcf370eb64366e8
This commit is contained in:
Toshiki Kikuchi
2024-08-29 16:39:50 +09:00
parent 13ffcc7242
commit 6ddfe9b179
7 changed files with 100 additions and 4 deletions
@@ -121,6 +121,20 @@ public class WindowManagerProxy implements ResourceBasedOverride, SafeCloseable
return false;
}
/**
* Returns if the pinned taskbar should be shown when home is visible.
*/
public boolean showLockedTaskbarOnHome(Context displayInfoContext) {
return false;
}
/**
* Returns if the home is visible.
*/
public boolean isHomeVisible(Context context) {
return false;
}
/**
* Returns the real bounds for the provided display after applying any insets normalization
*/