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

Skip to content
Commit 0cc5c6ea authored by Ikram Gabiyev's avatar Ikram Gabiyev
Browse files

Fix cross-fade legacy enter PiP2

Here is the list of changes related to cross-fade:

1. Use the correct PiP leash from PipTransitionState
2. Set the correct initial position and crop
3. Add a duration for alpha animator internally
4. Make sure PipTransitionState is ENTERED_PIP afterwards
5. Allow TRANSIT_OPEN mode to trigger legacy enter too,
since that's what we use in multi-activity cases

This CL also addresses recent changes to enter-PiP with
icon overlay logic, where a custom sourceRectHint is used
if apps provide an invalid or null one.
This should simplify handleSwipePipToHomeTransition(),
which uses a new getEnterPipWithOverlaySrcRectHint() static method.

Bug: 322871963
Test: legacy-enter PiP
Test: auto-enter PiP with an invalid or null srcRectHint
Change-Id: I559b6be7fac72a833519e2d80a7d86a6d4b80788
parent 48459cba
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