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

Commit a2838dfc authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Add overscan insets to surface frame dimensions in WallpaperService.

Bug: 18595832
Change-Id: Ia5a03cc5e059153d76907627ee0811b0851e35ed
parent 2711a539
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -690,8 +690,8 @@ public abstract class WallpaperService extends Service {
                    if (DEBUG) Log.v(TAG, "New surface: " + mSurfaceHolder.mSurface
                            + ", frame=" + mWinFrame);
                    
                    int w = mWinFrame.width();
                    int h = mWinFrame.height();
                    int w = mWinFrame.width() + mOverscanInsets.left + mOverscanInsets.right;
                    int h = mWinFrame.height() + mOverscanInsets.top + mOverscanInsets.bottom;

                    if (!fixedSize) {
                        final Rect padding = mIWallpaperEngine.mDisplayPadding;