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

Skip to content
Commit 3ebff918 authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

Allow for resize into the same bounds

In PiP2, resizes are transitions, so we need
to make sure we do not schedule a no-op transition
that can be aborted. Hence we do the following:

For fling gestures: do not schedule a transition if
final motion bounds are invariant from the original bounds.

For pinch-resizing: if the final bounds are unvariant,
in order to have the animation after release
running as a part of a transition, use a trick where we offset
the destination bounds by 1 pixel away from the closes edge.

Also enable dump() callbacks in PiP2, for easier debugging and
state checks. Currently PipController and PipTouchHandler are
the entry points (since they are independent in PiP2).

Bug: 340883807
Test: atest WMShellUnitTests:PipTransitionStateTest
Test: enter PiP2, pinch resize to min bounds, and drag beyond bottom
right corner

Change-Id: I0ec15644d345bd8ca25aa42259ca938360ab54ad
parent 43f5ce26
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