summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-04-28 20:04:51 +0800
committer Riddle Hsu <riddlehsu@google.com> 2023-05-02 23:49:35 +0800
commitfb6a72dd59ebdebe3a12e85bb2f130db27f932f3 (patch)
tree834545dba3c85a2314f0ddc3f91da6087cfa3706 /libs/androidfw/StringPool.cpp
parent357dfbc115f0a0143e363b5865d4a134073d9b8f (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