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
This commit is contained in:
1 parent
2e0eee4d63
commit
fbdb50aa48
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user