Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d079aed0 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Revert drag factor calculation to pre-vertical overview

Fixes: 149609070
Test: Swiped up in landscape past
where thumbnail would be. Scaled accordingly.

Change-Id: Ib8e64af2d7a9e4ce517d5f56300d50b659217b71
parent 5c6b3200
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;