Making wallpaper width 2x the screen width

Fixes bug #5373026

Change-Id: I5de999aee3958a4b6c83a144af64c7bf1cf12e39
This commit is contained in:
Michael Jurka committed 2011-09-26 16:39:22 -07:00
1 parent 0a92bda3a4
commit 1670698ff3
1 file changed
+2 -2
+2 -2
View File
@@ -111,7 +111,7 @@ public class Workspace extends SmoothPagedView
private final WallpaperManager mWallpaperManager;
private IBinder mWindowToken;
private static final float WALLPAPER_SCREENS_SPAN = 1.5f;
private static final float WALLPAPER_SCREENS_SPAN = 2f;
private int mDefaultPage;
@@ -730,7 +730,7 @@ public class Workspace extends SmoothPagedView
mWallpaperWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim));
mWallpaperHeight = (int)(maxDim * wallpaperTravelToScreenHeightRatio(maxDim, minDim));
} else {
mWallpaperWidth = (int) (minDim * WALLPAPER_SCREENS_SPAN);
mWallpaperWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim);
mWallpaperHeight = maxDim;
}
new Thread("setWallpaperDimension") {