Add overscan insets to surface frame dimensions in WallpaperService.

Bug: 18595832
Change-Id: Ia5a03cc5e059153d76907627ee0811b0851e35ed
This commit is contained in:
Filip Gruszczynski
2014-12-02 17:18:53 -08:00
parent 2711a53949
commit a2838dfc2c

View File

@@ -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;