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:55 (GMT)
commit29bd9c7b16888480cc2d4a3aad9833cdba205154 (patch)
treea7d8d6ba2c94acaa1547587ce1022a43f22d025c
parent8de4b239373f813443efc3c9419268d1cdd7202a (diff)
downloadandroid_packages_apps_Trebuchet-29bd9c7b16888480cc2d4a3aad9833cdba205154.zip
android_packages_apps_Trebuchet-29bd9c7b16888480cc2d4a3aad9833cdba205154.tar.gz
android_packages_apps_Trebuchet-29bd9c7b16888480cc2d4a3aad9833cdba205154.tar.bz2
Trebuchet : Only reset overscrolled child
Change-Id: Ief240c7fbbe296673ff4124cd4d463c9ba65f764 (cherry picked from commit 18980a7440ead7623e086098a2139f1218620b64) (cherry picked from commit 6404ffc5f9d3f0daae3356142440a509db91a1f5)
-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);
}
}
}