From 7ee40a41908fc03e5e5f69d13fa9a48d95c90164 Mon Sep 17 00:00:00 2001 From: Luca Zuccarini Date: Mon, 30 May 2022 09:45:16 +0000 Subject: [PATCH] Update the workspace and background scale interpolators. The spec had a typo (EMPHASIZED_DECELERATE instead of EMPHASIZED_ACCELERATE). In addition, we're now using LINEAR for the background since the feel is smoother this way. Cleared with motion (simonroberts@). Bug: 232418544 Test: manual Change-Id: I492dbe8008856d331836793177f1dd58c3265ca2 --- src/com/android/launcher3/touch/AllAppsSwipeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/touch/AllAppsSwipeController.java b/src/com/android/launcher3/touch/AllAppsSwipeController.java index 787d9ea8e0..5bacc9a07e 100644 --- a/src/com/android/launcher3/touch/AllAppsSwipeController.java +++ b/src/com/android/launcher3/touch/AllAppsSwipeController.java @@ -65,13 +65,13 @@ public class AllAppsSwipeController extends AbstractStateChangeTouchController { public static final Interpolator BLUR = Interpolators.clampToProgress( Interpolators.mapToProgress( - EMPHASIZED_DECELERATE, 0f, ALL_APPS_FULL_DEPTH_PROGRESS), + LINEAR, 0f, ALL_APPS_FULL_DEPTH_PROGRESS), WORKSPACE_MOTION_START, ALL_APPS_STATE_TRANSITION); public static final Interpolator WORKSPACE_FADE = Interpolators.clampToProgress(FINAL_FRAME, 0f, ALL_APPS_STATE_TRANSITION); public static final Interpolator WORKSPACE_SCALE = Interpolators.clampToProgress( - EMPHASIZED_DECELERATE, WORKSPACE_MOTION_START, ALL_APPS_STATE_TRANSITION); + EMPHASIZED_ACCELERATE, WORKSPACE_MOTION_START, ALL_APPS_STATE_TRANSITION); public static final Interpolator HOTSEAT_FADE = WORKSPACE_FADE; public static final Interpolator HOTSEAT_SCALE = HOTSEAT_FADE; public static final Interpolator HOTSEAT_TRANSLATE =