summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2018-05-25 22:57:52 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2018-06-25 20:56:29 -0700
commit8b704ff39c268633db70643e8c3184e007fc0d3a (patch)
treead41641bf01dcae2909527035301ae350472c965 /tools/aapt2/java/JavaClassGenerator.cpp
parentfc0e693bc24879d51b5761242ec86006d741ec66 (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.cpp')
0 files changed, 0 insertions, 0 deletions