Skip to content
Commit 9338d0cc authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 7dd18dd3
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