summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-05-08 21:14:39 (GMT)
committerDanesh M <daneshm90@gmail.com>2014-05-08 21:15:57 (GMT)
commit73da300a628435dac32da5630e33057ae5c03cd9 (patch)
tree6cb9463698cfdc37aa84aab59bf704fd43fb9951
parente1d8965c302938aeeafeaf456348e57f3f8ec417 (diff)
downloadandroid_packages_apps_Trebuchet-73da300a628435dac32da5630e33057ae5c03cd9.zip
android_packages_apps_Trebuchet-73da300a628435dac32da5630e33057ae5c03cd9.tar.gz
android_packages_apps_Trebuchet-73da300a628435dac32da5630e33057ae5c03cd9.tar.bz2
Trebuchet : Only reset overscrolled child
Change-Id: Ief240c7fbbe296673ff4124cd4d463c9ba65f764
-rw-r--r--src/com/android/launcher3/AppsCustomizePagedView.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/launcher3/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java
index 7e67f7c..ed504cf 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1514,16 +1514,11 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
} else {
if (mOverscrollTransformsSet) {
mOverscrollTransformsSet = false;
- View v0 = getPageAt(0);
- View v1 = getPageAt(getChildCount() - 1);
+ View v0 = getPageAt(mCurrentPage);
v0.setRotationY(0);
- v1.setRotationY(0);
v0.setCameraDistance(mDensity * mCameraDistance);
- v1.setCameraDistance(mDensity * mCameraDistance);
v0.setPivotX(v0.getMeasuredWidth() / 2);
- v1.setPivotX(v1.getMeasuredWidth() / 2);
v0.setPivotY(v0.getMeasuredHeight() / 2);
- v1.setPivotY(v1.getMeasuredHeight() / 2);
}
}
}