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

Commit f161171e authored by Johannes Gallmann's avatar Johannes Gallmann Committed by Android (Google) Code Review
Browse files

Merge "Fix flicker in cross-activity-back-animation" into main

parents 65cb6056 50f96222
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ abstract class CrossActivityBackAnimation(
        enteringHasSameLetterbox = false
        lastPostCommitFlingScale = SPRING_SCALE
        gestureProgress = 0f
        triggerBack = false
    }

    protected fun applyTransform(
@@ -499,10 +500,12 @@ abstract class CrossActivityBackAnimation(
        }

        override fun onBackCancelled() {
            triggerBack = false
            progressAnimator.onBackCancelled { finishAnimation() }
        }

        override fun onBackInvoked() {
            triggerBack = true
            progressAnimator.reset()
            onGestureCommitted(progressAnimator.velocity)
        }