summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2014-05-08 21:14:39 (GMT)
committerRajesh Yengisetty <rajesh@cyngn.com>2015-05-12 21:18:41 (GMT)
commit6404ffc5f9d3f0daae3356142440a509db91a1f5 (patch)
tree9f25f1be6bfc539d73ea81f88fbba0c8e79f4880
parentc8b7105b3e93d1c4d792690db57eeae75f71662e (diff)
downloadandroid_packages_apps_Trebuchet-6404ffc5f9d3f0daae3356142440a509db91a1f5.zip
android_packages_apps_Trebuchet-6404ffc5f9d3f0daae3356142440a509db91a1f5.tar.gz
android_packages_apps_Trebuchet-6404ffc5f9d3f0daae3356142440a509db91a1f5.tar.bz2
Trebuchet : Only reset overscrolled child
Change-Id: Ief240c7fbbe296673ff4124cd4d463c9ba65f764 (cherry picked from commit 18980a7440ead7623e086098a2139f1218620b64)
-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 cb82e14..71ad223 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1521,16 +1521,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);
}
}
}