Merge "fixed vertical parallax" into honeycomb

This commit is contained in:
Michael Jurka
2011-01-14 16:06:37 -08:00
committed by Android (Google) Code Review
+1 -1
View File
@@ -616,7 +616,7 @@ public class Workspace extends SmoothPagedView
Display display = mLauncher.getWindowManager().getDefaultDisplay();
int wallpaperTravelHeight = (int) (display.getHeight() *
wallpaperTravelToScreenHeightRatio(display.getWidth(), display.getHeight()));
float offsetFromCenter = (wallpaperTravelHeight / mWallpaperHeight) / 2f;
float offsetFromCenter = (wallpaperTravelHeight / (float) mWallpaperHeight) / 2f;
switch (offsetPosition) {
case TOP:
offset = 0.5f - offsetFromCenter;