From fbdb50aa489f39a1ef6736b2f2318b665c55e0e2 Mon Sep 17 00:00:00 2001 From: Tony Wickham Date: Tue, 6 Apr 2021 10:07:55 -0700 Subject: [PATCH] Fix HINT_STATE not tracking the entire height of the screen Explicitly use DeviceProfile#heightPx instead of getShiftRange(), which might be less depending on AllAppsTransitionController Test: swipe up from bottom on home, ensure workspace scales down as the gesture goes all the way to the top of the screen Change-Id: I9c2988d361c22d437c7eb9bea8ed715d06054c59 --- .../NoButtonNavbarToOverviewTouchController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java index 65bbeea52e..464b90a2cb 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java +++ b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java @@ -111,7 +111,7 @@ public class NoButtonNavbarToOverviewTouchController extends PortraitStatesTouch float progressMultiplier = super.initCurrentAnimation(); if (mToState == HINT_STATE) { // Track the drag across the entire height of the screen. - progressMultiplier = -1 / getShiftRange(); + progressMultiplier = -1f / mLauncher.getDeviceProfile().heightPx; } return progressMultiplier; }