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

Commit 689b27f0 authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

[PiP2]Take stashing into account on display change

Whether we are rotating the display while in PiP or
folding/unfolding a device, we should conserve the stash
state as well.

To do this properly first calculate the snap fraction taking
stash state into account. Then, use that snap fraction with
stash offsets and insets to calculate the proper final bounds.

Bug: 381171053
Flag: com.android.wm.shell.enable_pip2
Test: manually stash PiP then fold/unfold or rotate
Change-Id: Ic885e6c4990f7139d9aca3bb6322e133ff60fedd
parent ce48679b
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