diff options
| author | 2023-03-30 23:51:28 +0800 | |
|---|---|---|
| committer | 2023-04-10 22:20:39 +0800 | |
| commit | 9338d0cce3e9e7208c92f4d97b0ead44e37f3ad9 (patch) | |
| tree | c5134d8cda3ab739484337ad2d87dfdbbb9f5b18 /libs/androidfw/ApkParsing.cpp | |
| parent | 7dd18dd3485ff3306fba1edcff873fd1562b822f (diff) | |
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
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions