summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-11-20 22:56:03 (GMT)
committerRaj Yengisetty <rajesh@cyngn.com>2014-11-20 22:56:42 (GMT)
commitcf5c3ec94437ec1c94b6e7f5051bd16d425558d9 (patch)
treeb4ad0cfb965fc5be652e7e59f51e14c4079bd576
parent639991540411f0e0bcd25799cf809fe35c8bbbb5 (diff)
downloadandroid_packages_apps_Trebuchet-stable/cm-11.0-XNF8Y.zip
android_packages_apps_Trebuchet-stable/cm-11.0-XNF8Y.tar.gz
android_packages_apps_Trebuchet-stable/cm-11.0-XNF8Y.tar.bz2
Revert "Center wallpaper when only one screen"cm-11.0-XNPH05Q-tomato-9828f8e9ccstable/cm-11.0-XNF8Yshipping/cm-11.0
This reverts commit eacfd7fd535b4510cc43400c145c46db10110d08. Change-Id: I39677c5d0f61ba66297a39f5e88b96f59a0df46a
-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