Adjust bounds of a task moving to another display
This CL applies a set of adjustments to the bounds of a freeform task moving to another freeform display. - Update bounds in pixels so that it retains bounds in DP, considering the density difference between displays. - Adjust a task's position so that it retains the ratio of the left and right margins of the task. - If the task bounds do not fit within the destination display, use the default launch bounds instead. Bug: 375079111 Test: DesktopTasksControllerTest Flag: com.android.window.flags.enable_move_to_next_display_shortcut Change-Id: I0930b4ea768946d32e5c07c222eb44fe178aa5d8
Loading
Please register or sign in to comment