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

Commit 36951b97 authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

Implement auto-enter PiP2 in gesture nav [4/N]

When auto-entering PiP through gesture navigation
directly start a TRANSIT_PIP transition in
RecentsController#finishInner().

Merge the finishWCT meant for finishTransition()
into TRANSIT_PIP's startWCT instead to make sure
all the visibility updates are made after moving
the activity to a pinned root task as a hierarchy-op.

This would also make sure that setConfigAtEnd() properly
pauses the PiP activity's config updates since at first
after startTransition() its state would be RESUMED and
isVisibilityRequested=true.
moveActivityToPinnedRootTask() makes sure the state becomes
PAUSING (if not done by startPausing already in Recents transition).
This is followed by an already present call to schedulePauseActivity().

Eventually, the activity remains in PAUSED state
as enforced by the CTS tests.

Bug: 325481148
Test: manually swipe up auto-enter PiP
Change-Id: I58d330e816101da7bcf328b9dccf092f2bdd99cb
parent 63112b5b
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