From 639991540411f0e0bcd25799cf809fe35c8bbbb5 Mon Sep 17 00:00:00 2001 From: Rajesh Yengisetty Date: Thu, 20 Nov 2014 22:47:33 +0000 Subject: Revert "Exclude empty and custom screens when centering wallpaper" This reverts commit f7bef2545ba45e8405dd5a00c0d276d669bf0ad0. Change-Id: Iee25ecd12eb5b7be9f14959336af6c6c49d88c25 (cherry picked from commit 11827406fcd38de7f4acbb7093de48c09a092142) --- src/com/android/launcher3/Workspace.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 478b261e9..9813e6ca0 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -1390,7 +1390,7 @@ public class Workspace extends SmoothPagedView } private float wallpaperOffsetForCurrentScroll() { - if (getNumScreensExcludingEmptyAndCustom() <= 1) { + if (getChildCount() <= 1) { return mWallpaperIsLiveWallpaper ? 0 : 0.5f; } -- cgit v1.2.3