diff options
| author | 2023-04-28 20:04:51 +0800 | |
|---|---|---|
| committer | 2023-05-02 23:49:35 +0800 | |
| commit | fb6a72dd59ebdebe3a12e85bb2f130db27f932f3 (patch) | |
| tree | 834545dba3c85a2314f0ddc3f91da6087cfa3706 /libs/androidfw/StringPool.cpp | |
| parent | 357dfbc115f0a0143e363b5865d4a134073d9b8f (diff) | |
Set fullscreen mode to task at the end of exit-pip animation
This restores to legacy behavior for pip-to-fullscreen:
Animation starts: set activity to fullscreen
Animation ends: set task to fullscreen
Otherwise the app will receive the callbacks immediately:
(see ActivityRecord#canReceiveKeys,isFocusable,
Task#onConfigurationChangedInner
TaskSupervisor#scheduleUpdatePictureInPictureModeIfNeeded)
- onResumed
- onWindowFocusChanged
- onPictureInPictureModeChanged
And then the app may trigger more actions to disturb the
animation, e.g. toggle global UI mode, start/finish activity,
change requested orientation.
Another approach is to add workaround in WM core to skip the
events if the activity is in exit-pip transition, and then
invoke them at the end of transition.
Bug: 273177981
Test: Expand PiP to fullscreen, the lifecycle callbacks of the
PiP are called at the end of animation.
Change-Id: Ia9a17c6ea471016c28bfc10afeb37cc13e6c0999
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions