summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2018-05-25 22:57:52 +0800
committerTiger Huang <tigerhuang@google.com>2018-05-28 15:12:16 +0800
commit50d4546567ecbd143344a75fcacfa15afb5c34d2 (patch)
treed61ec0bb6dcc11e629077ebae53b3ed33630b3dc /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2b777fb83d38fd66b62523d4b611877c34e5c3f9 (diff)
Clear mDeferredHideWallpaper if wallpaper is being hidden
We defer wallpaper hiding while AppTransition.isRunning() is true. However, the state can be changed from 'running' to 'ready', which makes mDeferredHideWallpaper not to be cleared in time because handleAnimatingStoppedAndTransitionLocked() would not be called. When AppTransition is not in 'running' state (animations may be still running), the logic in WallpaperController.hideWallpapers() would start hiding wallpapers. However, before applying this patch, it can only hide the wallpaper surface in WindowState.hideWallpaperWindow(), but it cannot set the wallpaper to be invisible because mDeferredHideWallpaper is not cleared. These conditions cause that the WindowStateAnimator of wallpaper keeps showing the surface of wallpaper; the WindowStateAnimator of exiting window keeps hiding the surface of wallpaper frequently. Bug: 80226677 Test: 1. Run monkey test for hours and see if there is any log like: "Performed 6 layouts in a row. Skipping" 2. Manually open/close activities rapidly and see if wallpaper becomes black. 3. go/wm-smoke Change-Id: I237fd1942d7365cb747534a21dc98edb076e0d80
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions