Update Launcher2 to the new wallpaper API

This commit is contained in:
Marco Nelissen
2009-11-09 16:08:03 -08:00
parent 8a73c51ee8
commit c07c79b10b

View File

@@ -453,6 +453,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
}
private void updateWallpaperOffset(int scrollRange) {
mWallpaperManager.setWallpaperOffsetSteps(1.0f / (getChildCount() - 1), 0 );
mWallpaperManager.setWallpaperOffsets(getWindowToken(), mScrollX / (float) scrollRange, 0);
}