Apply timeout of one-shot pip animation type for shell transition
The setPipAnimationTypeToAlpha is always called from any gesture
to home. If the one-shot type doesn't have a timeout, the issue
can be: swipe to home from A, open B and use it several minutes,
click B's button and it calls enterPictureInPictureMode. Expect
it should use bounds animation but it uses alpha type from A.
Move the management of one-shot type to PipAnimationController.
So it can decouple from different transition systems, that also
eliminates duplicated code in PipTaskOrganizer and PipTransition.
Also reduce the timeout a bit because setPipAnimationTypeToAlpha
is called at the end of swipe animation. If the duration is long,
the wrong type animation may still be selected if the user
operates quickly.
Bug: 276438425
Test: Launch Calculator, swipe to home, open a sample app.
Wait several seconds, calls enterPictureInPictureMode.
There should be bounds animation.
Change-Id: Ia35e0232bccdece2335a87d3ad1bc6ce80f72fdf
Loading
Please register or sign in to comment