am 8dcd99ea: Merge "fixed vertical parallax" into honeycomb
* commit '8dcd99eaf72a2f5233647e2a05757bcfb8f28c28': fixed vertical parallax
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user