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

Commit 174e2224 authored by Danny Burakov's avatar Danny Burakov Committed by Android (Google) Code Review
Browse files

Merge "Update predictive back progress interpolator" into main

parents 20c0b2f6 75dd62fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -283,8 +283,7 @@ public class AllAppsTransitionController
            return;
        }

        float deceleratedProgress =
                Interpolators.PREDICTIVE_BACK_DECELERATED_EASE.getInterpolation(backProgress);
        float deceleratedProgress = Interpolators.BACK_GESTURE.getInterpolation(backProgress);
        float scaleProgress = ScrollableLayoutManager.PREDICTIVE_BACK_MIN_SCALE
                + (1 - ScrollableLayoutManager.PREDICTIVE_BACK_MIN_SCALE)
                * (1 - deceleratedProgress);
+1 −2
Original line number Diff line number Diff line
@@ -288,8 +288,7 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
    @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
    public void onBackProgressed(BackEvent backEvent) {
        final float progress = backEvent.getProgress();
        float deceleratedProgress =
                Interpolators.PREDICTIVE_BACK_DECELERATED_EASE.getInterpolation(progress);
        float deceleratedProgress = Interpolators.BACK_GESTURE.getInterpolation(progress);
        mSwipeToDismissProgress.updateValue(deceleratedProgress);
    }