mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Update Launcher2 to the new wallpaper API
This commit is contained in:
@@ -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