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

Commit 6f40fe65 authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

[PiP2] Update insets when rotating display layout

PipDisplayLayoutState#rotateTo() is a method we use
in PiP transitions (primarily enter with fixed rotation)
to calculate the display bounds at some target rotation
(in async rotation scheme the actual display rotation hasn't
happened yet).

However, PipDisplayLayoutState also caches the insets due
to the navbar to calculate the right insetsBounds, which is
ultimately what is used to get PiP entry bounds.

Therefore, whenever we rotate the display layout in-place,
we also need to make sure we rotate the insets to avoid extra
offsets to PiP on the wrong sides.

Bug: 418250885
Flag: com.android.wm.shell.enable_pip2
Test: manually enter PiP from ROTATION_270 and _90 in btn nav
Change-Id: I1fbcc6a0847f0ddfdab154d32d07ffc342b400dc
parent baadd8b6
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