Merge commit 'e2379d98237369e783359f1c0618e07a47ed6797' into eclair-mr2-plus-aosp * commit 'e2379d98237369e783359f1c0618e07a47ed6797': Update Launcher2 to the new wallpaper API
This commit is contained in:
commit
d5c55ff10b
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user