Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88165683 authored by Craig Mautner's avatar Craig Mautner
Browse files

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
parent bde32efa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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