diff options
author | Romain Guy <romainguy@android.com> | 2010-02-18 00:22:58 +0100 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2010-02-18 00:22:58 +0100 |
commit | ed2390e7091511618bf5030d4996ccafadba3cc3 (patch) | |
tree | f970bcb41667b5c20fde5d744bc509b14f62ddea /src | |
parent | 59d5245b0fb8014fc16d4791fb3a031cc29799aa (diff) | |
download | packages_apps_Trebuchet-ed2390e7091511618bf5030d4996ccafadba3cc3.tar.gz packages_apps_Trebuchet-ed2390e7091511618bf5030d4996ccafadba3cc3.tar.bz2 packages_apps_Trebuchet-ed2390e7091511618bf5030d4996ccafadba3cc3.zip |
Correctly recenter the wallpaper when going back to default screen.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 909d7a9b1..de4f0518a 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -256,6 +256,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag mPreviousIndicator.setLevel(mCurrentScreen); mNextIndicator.setLevel(mCurrentScreen); scrollTo(mCurrentScreen * getWidth(), 0); + updateWallpaperOffset(); invalidate(); } @@ -833,7 +834,7 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag mPreviousIndicator.setLevel(mNextScreen); mNextIndicator.setLevel(mNextScreen); - + View focusedChild = getFocusedChild(); if (focusedChild != null && screenDelta != 0 && focusedChild == getChildAt(mCurrentScreen)) { focusedChild.clearFocus(); |