Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
No update yet.
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
Description
Jetpack Compose version: 1.7.8, 1.8.0-beta03 Jetpack Compose component used: Animation Kotlin version: 2.1.0
Sorry for the word salad title. Hopefully the code sample is clearer.
Steps to reproduce:
SeekableTransitionState<Boolean>
transition.animateXAsState()
. Start this conditiontrue
, so that the animation is added.isRunning
should betrue
while either the AV's animation or the inner animation are still running.Observe that
isRunning
still returnstrue
on the root transition as if the inner animation were still there, even though it shouldn't be.With MutableTransitionState instead of Seekable, this does not happen;
isRunning
becomesfalse
as soon as the conditional animation is removed.Code sample:
To repro in the sample:
true
Int.MAX_VALUE
false
I expect the transition's
isRunning
to becomefalse
upon step 5, but instead it staystrue
. Try uncommenting the MutableTransitionState lines, which behaves as expected.