packages/wallpapers/Basic
Revision | 416bf81476daf3fef577678bf2ea86d215d1196b (tree) |
---|---|
Time | 2010-03-12 04:23:22 |
Author | Daniel Sandler <dsandler@goog...> |
Commiter | Daniel Sandler |
Assume xOffset is 0.5 in preview mode.
Bug: 2498042
Change-Id: Iff27cbd6fdc8a4b294c43f66cec56a15534b7ffd
@@ -450,6 +450,8 @@ public class PolarClockWallpaper extends WallpaperService { | ||
450 | 450 | @Override |
451 | 451 | public void onOffsetsChanged(float xOffset, float yOffset, |
452 | 452 | float xStep, float yStep, int xPixels, int yPixels) { |
453 | + if (isPreview()) return; | |
454 | + | |
453 | 455 | mOffsetX = xOffset; |
454 | 456 | drawFrame(); |
455 | 457 | } |