summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/SmoothPagedView.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2013-10-17 16:21:35 -0700
committerDanesh M <daneshm90@gmail.com>2014-06-05 23:03:35 -0700
commit3cc743e6b8395e20acc75ea37cfbc86c0af54bc8 (patch)
tree39cc0dc60d8fe1fcc5962a27beba0bc8d6a6eb00 /src/com/android/launcher3/SmoothPagedView.java
parentac77bd5f232b1410f2cc5e55e431a99a8c9ba323 (diff)
downloadandroid_packages_apps_Trebuchet-3cc743e6b8395e20acc75ea37cfbc86c0af54bc8.tar.gz
android_packages_apps_Trebuchet-3cc743e6b8395e20acc75ea37cfbc86c0af54bc8.tar.bz2
android_packages_apps_Trebuchet-3cc743e6b8395e20acc75ea37cfbc86c0af54bc8.zip
Cleaning some page animations
-> Fix jump when last page gets delted (issue 10908427) -> Fade out empty screen -> If the final page is empty, and that is the current page when spring loaded mode ends, animate back to the previous page and then fade out the final page. Examples: cancel widget or shortcut drop on the final page, scroll to final page and drop an icon into a the hotseat, etc. Change-Id: I13438fb0af6555b6f0b511b7aff51b3972431438
Diffstat (limited to 'src/com/android/launcher3/SmoothPagedView.java')
-rw-r--r--src/com/android/launcher3/SmoothPagedView.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/com/android/launcher3/SmoothPagedView.java b/src/com/android/launcher3/SmoothPagedView.java
index a45dbbf6e..64dcb34ca 100644
--- a/src/com/android/launcher3/SmoothPagedView.java
+++ b/src/com/android/launcher3/SmoothPagedView.java
@@ -52,8 +52,6 @@ public abstract class SmoothPagedView extends PagedView {
}
public float getInterpolation(float t) {
- // _o(t) = t * t * ((tension + 1) * t + tension)
- // o(t) = _o(t - 1) + 1
t -= 1.0f;
return t * t * ((mTension + 1) * t + mTension) + 1.0f;
}