Merge commit '81515abca85e742584db3c7cdacc5b840f0eb650' into eclair-mr2-plus-aosp * commit '81515abca85e742584db3c7cdacc5b840f0eb650': Update live wallpaper examples to new api.
This commit is contained in:
@@ -123,7 +123,8 @@ public class CubeWallpaper1 extends WallpaperService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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;
|
mOffset = xOffset;
|
||||||
drawFrame();
|
drawFrame();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,8 @@ public class CubeWallpaper2 extends WallpaperService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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;
|
mOffset = xOffset;
|
||||||
drawFrame();
|
drawFrame();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,8 @@ public abstract class RenderScriptWallpaper<T extends RenderScriptScene> extends
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
mRenderer.setOffset(xOffset, yOffset, xPixels, yPixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user