Swipe interaction changes on home screen
> Increasing the distance to travel for the first swipe
> Adding support for custom interpolators when building an animation
> When quickly swiping twice from home, finished the first animation
Change-Id: Ibc3c8667e9b927376fd99f08f0ca027f2398914b
diff --git a/src/com/android/launcher3/LauncherState.java b/src/com/android/launcher3/LauncherState.java
index 6185844..5c16ca9 100644
--- a/src/com/android/launcher3/LauncherState.java
+++ b/src/com/android/launcher3/LauncherState.java
@@ -180,8 +180,8 @@
return new float[] {1, 0, 0};
}
- public float getOverviewTranslationX(Launcher launcher) {
- return launcher.getDragLayer().getMeasuredWidth();
+ public float getOverviewTranslationFactor(Launcher launcher) {
+ return 1;
}
public void onStateEnabled(Launcher launcher) {