summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Yengisetty <rajesh@cyngn.com>2014-11-20 22:47:39 (GMT)
committerRajesh Yengisetty <rajesh@cyngn.com>2014-11-20 22:54:49 (GMT)
commitc69daed44efdd35e17933f4f1efeff4c7083150b (patch)
treeb4ad0cfb965fc5be652e7e59f51e14c4079bd576
parent11827406fcd38de7f4acbb7093de48c09a092142 (diff)
downloadandroid_packages_apps_Trebuchet-c69daed44efdd35e17933f4f1efeff4c7083150b.zip
android_packages_apps_Trebuchet-c69daed44efdd35e17933f4f1efeff4c7083150b.tar.gz
android_packages_apps_Trebuchet-c69daed44efdd35e17933f4f1efeff4c7083150b.tar.bz2
Revert "Center wallpaper when only one screen"
This reverts commit eacfd7fd535b4510cc43400c145c46db10110d08. Change-Id: I85fac84069cc10ad0c537104927af6bbe4be51f4
-rw-r--r--src/com/android/launcher3/Workspace.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 9813e6c..ecf618c 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -1337,7 +1337,7 @@ public class Workspace extends SmoothPagedView
float mAnimationStartOffset;
private final int ANIMATION_DURATION = 250;
// Don't use all the wallpaper for parallax until you have at least this many pages
- private final int MIN_PARALLAX_PAGE_SPAN = 2;
+ private final int MIN_PARALLAX_PAGE_SPAN = 3;
int mNumScreens;
boolean mCompletedInitialOffset;
@@ -1391,7 +1391,7 @@ public class Workspace extends SmoothPagedView
private float wallpaperOffsetForCurrentScroll() {
if (getChildCount() <= 1) {
- return mWallpaperIsLiveWallpaper ? 0 : 0.5f;
+ return 0;
}
// Exclude the leftmost page