summaryrefslogtreecommitdiffstats
path: root/quickstep/src
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-05-20 21:35:59 -0400
committerTony Wickham <twickham@google.com>2019-05-28 21:41:43 +0000
commitbef6a44e7b8869a4f311db778b9ebfe2f3d40428 (patch)
treeb443479953bbd4b3b59a16c65476b873aeaeda04 /quickstep/src
parentebd5e88164ef3a59cfe5f75a9eaeb95222ded7fa (diff)
downloadandroid_packages_apps_Trebuchet-bef6a44e7b8869a4f311db778b9ebfe2f3d40428.tar.gz
android_packages_apps_Trebuchet-bef6a44e7b8869a4f311db778b9ebfe2f3d40428.tar.bz2
android_packages_apps_Trebuchet-bef6a44e7b8869a4f311db778b9ebfe2f3d40428.zip
Continue scaling down recents past final position in 0 button mode
- Previously, we clamped the progress to 1 when reaching mTransitionDragLength. Now, we allow dragging all the way to the top of the screen, and store this new top progress in mDragLengthFactor (> 1f). - Because the launcher animation controller is inherently bound to a progress between 0 and 1, we have to do a bit of trickery involving interpolators. Specifically, we normalize the progress to 0 to 1 by dividing by mDragLengthFactor, but then we set the interpolators to multiply their progress by mDragLengthFactor. The result is that the animation progress appears to go from 0 to mDragLengthFactor, just like the window progress. - To avoid scaling too small, we start interpolating the progress at a certain point, ending at a specified max progress when reaching the top of the screen. Bug: 131741395 Change-Id: Ie8b4b56d37249cd1456f93c110c26c78fe052dc0
Diffstat (limited to 'quickstep/src')
-rw-r--r--quickstep/src/com/android/quickstep/ActivityControlHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/ActivityControlHelper.java b/quickstep/src/com/android/quickstep/ActivityControlHelper.java
index 17f88c980..b0acd9b1b 100644
--- a/quickstep/src/com/android/quickstep/ActivityControlHelper.java
+++ b/quickstep/src/com/android/quickstep/ActivityControlHelper.java
@@ -118,6 +118,8 @@ public interface ActivityControlHelper<T extends BaseDraggingActivity> {
void createActivityController(long transitionLength);
+ default void adjustActivityControllerInterpolators() { }
+
default void onTransitionCancelled() { }
default void setShelfState(ShelfAnimState animState, Interpolator interpolator,