From 6e9872bd068188012d012e11d4445ac106360344 Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Wed, 17 Aug 2016 10:19:05 -0700 Subject: [PATCH] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index c83c083b2ec0..746ae0ff3fcf 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -2272,6 +2272,8 @@ class WindowState extends WindowContainer implements WindowManagerPolicy.WindowS mWinAnimator.mDrawState = READY_TO_SHOW; mAnimatingWithSavedSurface = true; + requestUpdateWallpaperIfNeeded(); + if (DEBUG_APP_TRANSITIONS || DEBUG_ANIM) { Slog.v(TAG, "Restoring saved surface: " + this); } -- 2.11.0