summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorYingren Wang <yingrenw@codeaurora.org>2021-08-10 11:03:32 +0800
committerYingren Wang <yingrenw@codeaurora.org>2021-08-10 11:03:32 +0800
commit4e9a8f332fd5f8cca5422dce5cc0db4710faa114 (patch)
tree820370db23ee5f050dddaae9c240c4601e5e2d91 /startop/scripts/lib/cmd_utils.py
parent5aa2096dc11019a45c31728028d70e89856f5b4e (diff)
Fix app afterimage flashing while device unlocking
The problem is because in WMS#tryStartExitingAnimation set win.mAnimatingExit as ture but not destroy surface when pressing power button, so let `WindowState#mHasSurface` keeps true when screen off. (Normally the surface should be destroyed when screen off) This results when unlocking the screen will can see both the app window afterimage and launcher are animating. Check with DC#okToAnimate in tryStartExitingAnimation to ensure the surface can be destroyed when the display is not ready to animate (e.g. screen off). Also, in order to cleanly clean up surfaces while cancelling recents animation when the removal is allowed, make sure to invoke onAnimationFinished for task's windows to finish the process of the surface removal. Change-Id: I0ab1faa5f0cde77fb1a337637876233bbfc707e9 CRs-Fixed: 3005096
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions