Skip to content

Commit

Permalink
Revert "Center wallpaper when only one screen"
Browse files Browse the repository at this point in the history
This reverts commit eacfd7f.

Change-Id: I39677c5d0f61ba66297a39f5e88b96f59a0df46a
  • Loading branch information
Raj Yengisetty committed Nov 20, 2014
1 parent 6399915 commit cf5c3ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/android/launcher3/Workspace.java
Expand Up @@ -1337,7 +1337,7 @@ class WallpaperOffsetInterpolator implements Choreographer.FrameCallback {
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;

Expand Down Expand Up @@ -1391,7 +1391,7 @@ public boolean computeScrollOffset() {

private float wallpaperOffsetForCurrentScroll() {
if (getChildCount() <= 1) {
return mWallpaperIsLiveWallpaper ? 0 : 0.5f;
return 0;
}

// Exclude the leftmost page
Expand Down

0 comments on commit cf5c3ec

Please sign in to comment.