summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Miranda <jonmiranda@google.com>2018-06-26 22:32:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-06-26 22:32:37 +0000
commit3d80330efc58cd6de70e03e7cbb99fc2b19db92c (patch)
tree4e60a0dc4c06ae6e1635ce234c1e12b410337adc /src
parent626467130f739fd3742c969be461b869a5368f10 (diff)
parent5023771e05f0a64177dfeb2a545394ed4c63e9d1 (diff)
downloadandroid_packages_apps_Trebuchet-3d80330efc58cd6de70e03e7cbb99fc2b19db92c.tar.gz
android_packages_apps_Trebuchet-3d80330efc58cd6de70e03e7cbb99fc2b19db92c.tar.bz2
android_packages_apps_Trebuchet-3d80330efc58cd6de70e03e7cbb99fc2b19db92c.zip
Merge "Revert "Tune app closing/launcher resume animation "spring" values."" into ub-launcher3-edmonton-polish
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/anim/Interpolators.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/com/android/launcher3/anim/Interpolators.java b/src/com/android/launcher3/anim/Interpolators.java
index 389da4807..8a1abf412 100644
--- a/src/com/android/launcher3/anim/Interpolators.java
+++ b/src/com/android/launcher3/anim/Interpolators.java
@@ -119,20 +119,18 @@ public class Interpolators {
public static final Interpolator OSCILLATE = new Interpolator() {
// Used to scale the oscillations horizontally
- private final float horizontalScale = 4f;
+ private final float horizontalScale = 1f;
// Used to shift the oscillations horizontally
- private final float horizontalShift = 0.22f;
+ private final float horizontalShift = 0.5f;
// Used to scale the oscillations vertically
private final float verticalScale = 1f;
// Used to shift the oscillations vertically
private final float verticalShift = 1f;
- // Amplitude of oscillation
- private final float amplitude = 0.9f;
@Override
public float getInterpolation(float t) {
t = horizontalScale * (t + horizontalShift);
- return (float) ((verticalScale * (Math.exp(-t) * Math.cos(amplitude * Math.PI * t)))
+ return (float) ((verticalScale * (Math.exp(-t) * Math.cos(2 * Math.PI * t)))
+ verticalShift);
}
};