Revert drag factor calculation to pre-vertical overview am: d079aed058

Change-Id: I61bbfab583aff6e8c152e03e7dcbf3f6b58b40d1
This commit is contained in:
Vinit Nayak
2020-05-04 18:06:41 +00:00
committed by Automerger Merge Worker
@@ -345,10 +345,7 @@ public abstract class BaseSwipeUpHandler<T extends BaseDraggingActivity, Q exten
mAppWindowAnimationHelper.updateTargetRect(TEMP_RECT);
if (mDeviceState.isFullyGesturalNavMode()) {
// We can drag all the way to the top of the screen.
// TODO(b/149609070): Landscape apps are currently limited in
// their ability to scale past the target rect.
float dragFactor = (float) dp.heightPx / mTransitionDragLength;
mDragLengthFactor = displayRotation == 0 ? dragFactor : Math.min(1.0f, dragFactor);
mDragLengthFactor = (float) dp.heightPx / mTransitionDragLength;
Pair<Float, Float> dragFactorStartAndMaxProgress =
mActivityInterface.getSwipeUpPullbackStartAndMaxProgress();
mDragLengthFactorStartPullback = dragFactorStartAndMaxProgress.first;