Taskbar in Desktop Windowing Mode

Test: presubmit
Bug: 330146462
Flag: NONE
Change-Id: Ib33f90704c3010df6a52e2a1c420960b11dbd0d4
This commit is contained in:
Jagrut Desai
2024-04-17 15:27:30 -07:00
parent 5a8e719b4c
commit 2e8ca87c21
12 changed files with 135 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ import static com.android.launcher3.LauncherPrefs.GRID_NAME;
import static com.android.launcher3.Utilities.dpiFromPx;
import static com.android.launcher3.testing.shared.ResourceUtils.INVALID_RESOURCE_HANDLE;
import static com.android.launcher3.util.DisplayController.CHANGE_DENSITY;
import static com.android.launcher3.util.DisplayController.CHANGE_DESKTOP_MODE;
import static com.android.launcher3.util.DisplayController.CHANGE_NAVIGATION_MODE;
import static com.android.launcher3.util.DisplayController.CHANGE_SUPPORTED_BOUNDS;
import static com.android.launcher3.util.DisplayController.CHANGE_TASKBAR_PINNING;
@@ -236,7 +237,8 @@ public class InvariantDeviceProfile implements SafeCloseable {
DisplayController.INSTANCE.get(context).setPriorityListener(
(displayContext, info, flags) -> {
if ((flags & (CHANGE_DENSITY | CHANGE_SUPPORTED_BOUNDS
| CHANGE_NAVIGATION_MODE | CHANGE_TASKBAR_PINNING)) != 0) {
| CHANGE_NAVIGATION_MODE | CHANGE_TASKBAR_PINNING
| CHANGE_DESKTOP_MODE)) != 0) {
onConfigChanged(displayContext);
}
});