Merge "Add overscan insets to surface frame dimensions in WallpaperService." into lmp-sprout-dev

This commit is contained in:
Filip Gruszczynski
2014-12-03 02:23:32 +00:00
committed by Android (Google) Code Review

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;