OSDN Git Service

Request a wallpaper update when restoring surface of a wallpaper window
authorChong Zhang <chz@google.com>
Wed, 17 Aug 2016 17:19:05 +0000 (10:19 -0700)
committerChong Zhang <chz@google.com>
Wed, 17 Aug 2016 17:19:05 +0000 (10:19 -0700)
commit6e9872bd068188012d012e11d4445ac106360344
treeb5382334872d9635b0a30dfb17f3bc61e76c7741
parent7d3d7ae5560db351daf26ba76cb8fa3356c2bacf
Request a wallpaper update when restoring surface of a wallpaper window

Normally wallpaper redo will be requested when the window draw finish.
If we're restoring, it's basically drawn instantly, and we need to update
so that the transition selection recognizes the correct wallpaper set up.

(Usually this scenario won't happen when going Home because home stack
don't save surface. However cts ActivityManagerTransitionSelectionTests
are simulating home with a task in fullscreen stack, and we might have
saved surfaces there.)

Change-Id: Ic5ba59ce54b279cc463888aefa94f7ddbf8a2bd3
services/core/java/com/android/server/wm/WindowState.java