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

Skip to content
Commit b464667b authored by Mateusz Cicheński's avatar Mateusz Cicheński
Browse files

Reset original task surface after reparenting to PiP

Currently if the shell transitions are disabled (default), the auto-enter
pip will trigger an animation via Recents, animating the original task
surface and populating the mLastRecentsAnimationTransaction. As we
reparent that activity into the pip window, we also reset the state of the
original task surface in clearLastRecentsAnimationTransaction.

When shell transitions are enabled, the auto-enter pip does not animate via the same mechanism and the mLastRecentsAnimationTransaction is null. We still animate the original task surface but nothing resets it after the
activity is being reparented.

This CL fixes that second scenario by applying a reset transform to the
original task surface even if there was no recents animation transaction.

Bug: 232981505
Test: manual, open ApiDemos, autoenter pip, return to full screen via pip menu

Change-Id: Ibc42c1277e045bf5042678340b9d68428cb2e626
parent 7e3f2d3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment