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

Commit 75dd62fd authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Update predictive back progress interpolator

Bug: 332512902
Flag: ACONFIG com.android.systemui.predictive_back_sysui TRUNKFOOD
Test: Manual, i.e. analysing screenrecordings and verify that there are no more animation jumps at the start/end of the back animations
Change-Id: I99b13199032f7098fedb1cbd02cfe478d6fbb1f7
parent 60d4e8d3
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);
    }