OSDN Git Service

Cleanup mAnimatingExit flag before maybeUpdateTransitToWallpaper()
authorChong Zhang <chz@google.com>
Wed, 27 Jul 2016 00:47:29 +0000 (17:47 -0700)
committerChong Zhang <chz@google.com>
Wed, 27 Jul 2016 19:10:46 +0000 (12:10 -0700)
commite05bcb15d5944dee38e21fe64315ebf6673e69c7
treeb3863eb5246a91f918b1c0fbdc53bfba127d2b5d
parent90cd4449bb47c93428796770b2609d682d7a4621
Cleanup mAnimatingExit flag before maybeUpdateTransitToWallpaper()

If we get onStopped before next resume, but previous exit animation
doesn't finish by the time the entering animation is started,
notifyAppResumed() won't do a surface cleanup (since it's already
stopped). Then maybeUpdateTransitToWallpaper() will think the wallpaper
target (launcher) is invisible because of the mAnimatingExit==true,
thus fails to pick WALLPAPER_OPEN animation.

We need to clear mAnimatingExit and relevant flags before
maybeUpdateTransitToWallpaper(). Currently we do it in handleOpeningApps
but that's too late.

bug: 30255354
Change-Id: Idb049c54978824709a190c413d82d42f40226aa7
services/core/java/com/android/server/wm/AppWindowToken.java
services/core/java/com/android/server/wm/WindowSurfacePlacer.java