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

Commit 74db5616 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Expand the comment inside SwipeAnimation.run()" into main

parents eb5e6d55 cf619080
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -285,8 +285,9 @@ internal class SwipeAnimation<T : ContentKey>(
    )

    suspend fun run() {
        // When this animation is started, wait for the offset animation runnable to be set and
        // run it.
        // This animation will first be driven by finger, then when the user lift their finger we
        // start an animation to the target offset (progress = 1f or progress = 0f). We await() for
        // offsetAnimationRunnable to be completed and then run it.
        val runAnimation = offsetAnimationRunnable.await() ?: return
        runAnimation()
    }