Implement new drag zone indicator regions.
Updates the drag zone indicators to Regions based on the task's pre-drag windowing mode. Drag zone targets for freeform tasks have been updated while other windowing modes remain the same. Also, changes the coordinates fetched in handleCaptionThroughStatusBar to raw x/y coordinates. This is due to each split stage having its own coordinate space. Split left/right indicators from a drag from splitscreen would not work properly otherwise. Note these are visually inaccurate; transitions will be tied to these regions in a future CL. Bug: 280828642 Test: Manual Change-Id: Ia58aae83e22d1576ef71172ce78323c0ae538b80
Showing
- libs/WindowManager/Shell/res/values/dimen.xml 11 additions, 0 deletionslibs/WindowManager/Shell/res/values/dimen.xml
- libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopModeVisualIndicator.java 102 additions, 11 deletions...roid/wm/shell/desktopmode/DesktopModeVisualIndicator.java
- libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/DesktopTasksController.kt 1 addition, 1 deletion...om/android/wm/shell/desktopmode/DesktopTasksController.kt
- libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java 3 additions, 3 deletions...wm/shell/windowdecor/DesktopModeWindowDecorViewModel.java
- libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/DesktopModeVisualIndicatorTest.kt 139 additions, 0 deletions...id/wm/shell/desktopmode/DesktopModeVisualIndicatorTest.kt
Loading
Please register or sign in to comment