summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/anim
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-07-12 18:02:09 -0700
committerTony <twickham@google.com>2019-07-12 18:02:09 -0700
commit5818f9b3c523d41ba0e399a1513e22bb83d38abc (patch)
tree1f650548361c68a099a947fc1be0b196f099936e /src/com/android/launcher3/anim
parentddf64806e248147c9670c596d0a2c200b5d6f371 (diff)
downloadpackages_apps_Trebuchet-5818f9b3c523d41ba0e399a1513e22bb83d38abc.tar.gz
packages_apps_Trebuchet-5818f9b3c523d41ba0e399a1513e22bb83d38abc.tar.bz2
packages_apps_Trebuchet-5818f9b3c523d41ba0e399a1513e22bb83d38abc.zip
Fix overshoot velocity in 2-button landscape mode
Now we use the velocity towards the middle of the screen (e.g. x when in landscape) instead of always using y. Test: testBackground with @PortraitLandscape Bug: 135567630 Change-Id: I77ab6bdf0d556475a6c182ae91914a718a81e1c4
Diffstat (limited to 'src/com/android/launcher3/anim')
-rw-r--r--src/com/android/launcher3/anim/Interpolators.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher3/anim/Interpolators.java b/src/com/android/launcher3/anim/Interpolators.java
index b169cb80b..8443231e8 100644
--- a/src/com/android/launcher3/anim/Interpolators.java
+++ b/src/com/android/launcher3/anim/Interpolators.java
@@ -144,7 +144,8 @@ public class Interpolators {
public static Interpolator clampToProgress(Interpolator interpolator, float lowerBound,
float upperBound) {
if (upperBound <= lowerBound) {
- throw new IllegalArgumentException("lowerBound must be less than upperBound");
+ throw new IllegalArgumentException(String.format(
+ "lowerBound (%f) must be less than upperBound (%f)", lowerBound, upperBound));
}
return t -> {
if (t < lowerBound) {