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

Commit 2aded18b authored by Jim Miller's avatar Jim Miller
Browse files

Fix 4025684: Don't include wallpaper dimensions in bounds calculation

This fixes a bug where we would capture the statusbar region in
thumbnails because the wallpaper was used in the bounds calculation.

Change-Id: I572221e83c4c363afe90e59bece9a291ce694a15
parent 8496ddc5
Loading
Loading
Loading
Loading
+11 −7
Original line number Diff line number Diff line
@@ -4791,6 +4791,9 @@ public class WindowManagerService extends IWindowManager.Stub
                if (maxLayer < ws.mAnimLayer) {
                    maxLayer = ws.mAnimLayer;
                }
                
                // Don't include wallpaper in bounds calculation
                if (!ws.mIsWallpaper) {
                    final Rect wf = ws.mFrame;
                    final Rect cr = ws.mContentInsets;
                    int left = wf.left + cr.left;
@@ -4799,6 +4802,7 @@ public class WindowManagerService extends IWindowManager.Stub
                    int bottom = wf.bottom - cr.bottom;
                    frame.union(left, top, right, bottom);
                }
            }
            Binder.restoreCallingIdentity(ident);

            // Constrain frame to the screen size.