summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Yengisetty <rajesh@cyngn.com>2014-11-20 22:47:33 +0000
committerRajesh Yengisetty <rajesh@cyngn.com>2014-11-20 22:55:32 +0000
commit639991540411f0e0bcd25799cf809fe35c8bbbb5 (patch)
tree08c29ada8d1415bdf39a621cc651223c9ae3ab17
parent5555c107ca3edc05bfa03e56e246a7feac65ef88 (diff)
downloadandroid_packages_apps_Trebuchet-639991540411f0e0bcd25799cf809fe35c8bbbb5.tar.gz
android_packages_apps_Trebuchet-639991540411f0e0bcd25799cf809fe35c8bbbb5.tar.bz2
android_packages_apps_Trebuchet-639991540411f0e0bcd25799cf809fe35c8bbbb5.zip
Revert "Exclude empty and custom screens when centering wallpaper"
This reverts commit f7bef2545ba45e8405dd5a00c0d276d669bf0ad0. Change-Id: Iee25ecd12eb5b7be9f14959336af6c6c49d88c25 (cherry picked from commit 11827406fcd38de7f4acbb7093de48c09a092142)
-rw-r--r--src/com/android/launcher3/Workspace.java2
1 files changed, 1 insertions, 1 deletions
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;
}