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

Commit 9b84c722 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Fix typo in HoistedSceneTransitionLayoutState

Bug: 308961608
Flag: N/A
Test: N/A
Change-Id: Idd7ebcc09d98c6652611cc5e5cdfbc407fb75296
parent 4f7007cf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ fun updateSceneTransitionLayoutState(
    stateLinks: List<StateLink> = emptyList(),
): SceneTransitionLayoutState {
    return remember {
            HoistedSceneTransitionLayoutScene(
            HoistedSceneTransitionLayoutState(
                currentScene,
                transitions,
                onChangeScene,
@@ -364,7 +364,7 @@ internal abstract class BaseSceneTransitionLayoutState(
 * A [SceneTransitionLayout] whose current scene/source of truth is hoisted (its current value comes
 * from outside).
 */
internal class HoistedSceneTransitionLayoutScene(
internal class HoistedSceneTransitionLayoutState(
    initialScene: SceneKey,
    override var transitions: SceneTransitions,
    private var changeScene: (SceneKey) -> Unit,
@@ -400,7 +400,7 @@ internal class HoistedSceneTransitionLayoutScene(
                // late.
                val newKey = targetSceneChannel.tryReceive().getOrNull() ?: newKey
                animateToScene(
                    layoutState = this@HoistedSceneTransitionLayoutScene,
                    layoutState = this@HoistedSceneTransitionLayoutState,
                    target = newKey,
                    transitionKey = null,
                )