diff --git a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube1/CubeWallpaper1.java b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube1/CubeWallpaper1.java index 9279065c2..52a708afd 100644 --- a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube1/CubeWallpaper1.java +++ b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube1/CubeWallpaper1.java @@ -123,7 +123,8 @@ public class CubeWallpaper1 extends WallpaperService { } @Override - public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { + public void onOffsetsChanged(float xOffset, float yOffset, + float xStep, float yStep, int xPixels, int yPixels) { mOffset = xOffset; drawFrame(); } diff --git a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2.java b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2.java index 43f132613..0c6d90e52 100644 --- a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2.java +++ b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube2/CubeWallpaper2.java @@ -190,7 +190,8 @@ public class CubeWallpaper2 extends WallpaperService { } @Override - public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { + public void onOffsetsChanged(float xOffset, float yOffset, + float xStep, float yStep, int xPixels, int yPixels) { mOffset = xOffset; drawFrame(); } diff --git a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptWallpaper.java b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptWallpaper.java index c30a61973..3fb51484b 100644 --- a/samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptWallpaper.java +++ b/samples/CubeLiveWallpaper/src/com/android/livecubes/cube3/RenderScriptWallpaper.java @@ -82,7 +82,8 @@ public abstract class RenderScriptWallpaper extends } @Override - public void onOffsetsChanged(float xOffset, float yOffset, int xPixels, int yPixels) { + public void onOffsetsChanged(float xOffset, float yOffset, + float xStep, float yStep, int xPixels, int yPixels) { mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels); }