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

Commit 42fa5e8a authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] Use state.currentTransition

Bug: 396191914
Test: not tested
Flag: com.android.systemui.scene_container
Change-Id: Iaa385907cb62ca4d8a80ef827646e35c8b7009c6
parent 13dcb866
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import com.android.compose.animation.scene.MutableSceneTransitionLayoutState
import com.android.compose.animation.scene.OverlayKey
import com.android.compose.animation.scene.SceneKey
import com.android.compose.animation.scene.TransitionKey
import com.android.compose.animation.scene.content.state.TransitionState
import com.android.compose.animation.scene.observableTransitionState
import com.android.systemui.scene.shared.model.SceneDataSource
import kotlinx.coroutines.CoroutineScope
@@ -106,6 +105,6 @@ class SceneTransitionLayoutDataSource(
    }

    override fun freezeAndAnimateToCurrentState() {
        (state.transitionState as? TransitionState.Transition)?.freezeAndAnimateToCurrentState()
        state.currentTransition?.freezeAndAnimateToCurrentState()
    }
}