OSDN Git Service

Fix wallpaper offset after boot
authorMichael Jurka <mikejurka@google.com>
Sat, 14 Sep 2013 14:40:34 +0000 (16:40 +0200)
committerMichael Jurka <mikejurka@google.com>
Sat, 14 Sep 2013 14:40:34 +0000 (16:40 +0200)
Bug: 10722164

src/com/android/launcher3/Workspace.java

index 1818ade..09f37c4 100644 (file)
@@ -1068,7 +1068,7 @@ public class Workspace extends SmoothPagedView
 
     class WallpaperOffsetInterpolator implements Choreographer.FrameCallback {
         float mFinalOffset = 0.0f;
-        float mCurrentOffset = 0.0f;
+        float mCurrentOffset = 0.5f; // to force an initial update
         //long mLastWallpaperOffsetUpdateTime;
         boolean mWaitingForUpdate;
         Choreographer mChoreographer;