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

Commit 1e7a7dc0 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Update predictive back progress interpolator for dialogs

Bug: 332512902
Flag: ACONFIG com.android.systemui.predictive_back_animate_dialogs 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: I22400eb4547582739373c968282b160c4450d42c
parent ef54218e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -41,9 +41,9 @@ fun BackAnimationSpec.Companion.createFloatingSurfaceAnimationSpec(
    maxMarginXdp: Float,
    maxMarginYdp: Float,
    minScale: Float,
    translateXEasing: Interpolator = Interpolators.STANDARD_DECELERATE,
    translateXEasing: Interpolator = Interpolators.BACK_GESTURE,
    translateYEasing: Interpolator = Interpolators.LINEAR,
    scaleEasing: Interpolator = Interpolators.STANDARD_DECELERATE,
    scaleEasing: Interpolator = Interpolators.BACK_GESTURE,
): BackAnimationSpec {
    return BackAnimationSpec { backEvent, progressY, result ->
        val displayMetrics = displayMetricsProvider()