summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-02-18 00:22:58 +0100
committerRomain Guy <romainguy@android.com>2010-02-18 00:22:58 +0100
commited2390e7091511618bf5030d4996ccafadba3cc3 (patch)
treef970bcb41667b5c20fde5d744bc509b14f62ddea /src
parent59d5245b0fb8014fc16d4791fb3a031cc29799aa (diff)
downloadandroid_packages_apps_Trebuchet-ed2390e7091511618bf5030d4996ccafadba3cc3.tar.gz
android_packages_apps_Trebuchet-ed2390e7091511618bf5030d4996ccafadba3cc3.tar.bz2
android_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.java3
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();