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

Commit cf619080 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Expand the comment inside SwipeAnimation.run()

Bug: 362727477
Test: N/A
Flag: com.android.systemui.scene_container
Change-Id: If5a8bff66ab336144feaee230362f4715e97cbc2
parent 8d93cff7
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()
    }