summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesh Yengisetty <rajesh@cyngn.com>2014-11-20 22:47:33 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-11-20 22:54:40 (GMT)
commit11827406fcd38de7f4acbb7093de48c09a092142 (patch)
tree08c29ada8d1415bdf39a621cc651223c9ae3ab17
parentb8f623db36a1de8703911949bafc418804f64a20 (diff)
downloadandroid_packages_apps_Trebuchet-11827406fcd38de7f4acbb7093de48c09a092142.zip
android_packages_apps_Trebuchet-11827406fcd38de7f4acbb7093de48c09a092142.tar.gz
android_packages_apps_Trebuchet-11827406fcd38de7f4acbb7093de48c09a092142.tar.bz2
Revert "Exclude empty and custom screens when centering wallpaper"
This reverts commit f7bef2545ba45e8405dd5a00c0d276d669bf0ad0. Change-Id: Iee25ecd12eb5b7be9f14959336af6c6c49d88c25
-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 478b261..9813e6c 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;
}