OSDN Git Service

Use Surface layer for Surface operation.
authorCraig Mautner <cmautner@google.com>
Thu, 31 May 2012 21:25:31 +0000 (14:25 -0700)
committerCraig Mautner <cmautner@google.com>
Thu, 31 May 2012 21:25:31 +0000 (14:25 -0700)
Previous fix exposed an existing bug where we were using mAnimLayer to
determine the highest Surface layer. This fix uses mSurfaceLayer to set
the layer limits for making the screenshot.

Fixes bug 6586168.

Change-Id: Iaa3b43867aef795ca617ff4b8076428dfc91eaf2

services/java/com/android/server/wm/WindowManagerService.java

index 10919f2..efbf0d4 100755 (executable)
@@ -5437,8 +5437,8 @@ public class WindowManagerService extends IWindowManager.Stub
                 // window.
                 including = !ws.mIsImWindow && !ws.isFullscreen(dw, dh);
 
-                if (maxLayer < ws.mWinAnimator.mAnimLayer) {
-                    maxLayer = ws.mWinAnimator.mAnimLayer;
+                if (maxLayer < ws.mWinAnimator.mSurfaceLayer) {
+                    maxLayer = ws.mWinAnimator.mSurfaceLayer;
                 }
                 
                 // Don't include wallpaper in bounds calculation