Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

packages-wallpapers-Basic: Commit

packages/wallpapers/Basic


Commit MetaInfo

Revision416bf81476daf3fef577678bf2ea86d215d1196b (tree)
Time2010-03-12 04:23:22
AuthorDaniel Sandler <dsandler@goog...>
CommiterDaniel Sandler

Log Message

Assume xOffset is 0.5 in preview mode.

Bug: 2498042
Change-Id: Iff27cbd6fdc8a4b294c43f66cec56a15534b7ffd

Change Summary

Incremental Difference

--- a/src/com/android/wallpaper/polarclock/PolarClockWallpaper.java
+++ b/src/com/android/wallpaper/polarclock/PolarClockWallpaper.java
@@ -450,6 +450,8 @@ public class PolarClockWallpaper extends WallpaperService {
450450 @Override
451451 public void onOffsetsChanged(float xOffset, float yOffset,
452452 float xStep, float yStep, int xPixels, int yPixels) {
453+ if (isPreview()) return;
454+
453455 mOffsetX = xOffset;
454456 drawFrame();
455457 }
Show on old repository browser