Skip to content

Commit 8816568

Browse files
author
Craig Mautner
committed
Use Surface layer for Surface operation.
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
1 parent bde32ef commit 8816568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5437,8 +5437,8 @@ public Bitmap screenshotApplications(IBinder appToken, int width, int height) {
54375437
// window.
54385438
including = !ws.mIsImWindow && !ws.isFullscreen(dw, dh);
54395439

5440-
if (maxLayer < ws.mWinAnimator.mAnimLayer) {
5441-
maxLayer = ws.mWinAnimator.mAnimLayer;
5440+
if (maxLayer < ws.mWinAnimator.mSurfaceLayer) {
5441+
maxLayer = ws.mWinAnimator.mSurfaceLayer;
54425442
}
54435443

54445444
// Don't include wallpaper in bounds calculation

0 commit comments

Comments
 (0)