commit | fbdb50aa489f39a1ef6736b2f2318b665c55e0e2 | [log] [tgz] |
---|---|---|
author | Tony Wickham <twickham@google.com> | Tue Apr 06 10:07:55 2021 -0700 |
committer | Tony Wickham <twickham@google.com> | Tue Apr 06 10:09:44 2021 -0700 |
tree | 7048bb4a74d049fa7b29a7500e78bff72a815681 | |
parent | 2e0eee4d63df82a1df460aa2c05a1482565a435f [diff] |
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
diff --git a/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java b/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java index 65bbeea..464b90a 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 @@ 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; }