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

Skip to content
Commit 4e9fc478 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Cleanup alpha animation type after use

When entering PiP from Overview, or from legacy non-auto-enter cases, an
alpha animation is used by PipTransition. When that occurs, we tend to
clear the alpha animation type in
PipTaskOrganizer#onEndOfSwipePipToHomeTransition, which is actually not
triggered in those cases.

In turn, when a bounds animation is expected for auto entering PiP,
PipTransition#augmentRequest would think it's still in alpha animation
mode and forms the WindowContainerTransaction for bounds change,
therefore, flickers at the of auto-enter-pip animation.

Fixing this by following the same contract as in PipAnimationController,
the alpha animation type is treated as a one-shot, we reset it back to
bounds whenever it's processed.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/f3UO3cLPf5E9aNouQibRio
Bug: 341944518
Test: Enter PiP from Overview, then enter PiP again from landscape to
      portrait mode. See also the video
Change-Id: I3445b7770ef3a07e4acf6a5464b08a6e27829ca5
parent 45ba476d
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