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-18 18:59:25 (GMT)
commitef552aabd0e95d4a45e1fa5aae928ebcbd3be84d (patch)
tree64e8b3dab6e36281467f1940caaaa5905cdd9444
parent22e21ad7a891988adad36453cc30a460da4cadb8 (diff)
downloadandroid_packages_apps_Trebuchet-ef552aabd0e95d4a45e1fa5aae928ebcbd3be84d.zip
android_packages_apps_Trebuchet-ef552aabd0e95d4a45e1fa5aae928ebcbd3be84d.tar.gz
android_packages_apps_Trebuchet-ef552aabd0e95d4a45e1fa5aae928ebcbd3be84d.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 a28cca82..33c90a3 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);
}
}
}