Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b86965b2 authored by Daichi Hirono's avatar Daichi Hirono
Browse files

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
parent c05c4e0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment