Fixed
Status Update
Comments
lp...@google.com <lp...@google.com>
ya...@google.com <ya...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Expected output
What is the expected output?
Current output
What is the current output?
ap...@google.com <ap...@google.com> #3
How can you possibly need more information, i just told you the exact part of code causing the issue, and the code changes required to fix it!
Please read the description.
Expected output:
What is the expected output?
See attached "expected.webm" video in OP
Current output
What is the current output?
See attached "actual.webm" video in OP
Please read the description.
Expected output:
What is the expected output?
See attached "expected.webm" video in OP
Current output
What is the current output?
See attached "actual.webm" video in OP
Description
Jetpack Compose version: 1.2.0-beta02 Jetpack Compose component used: Compose Animation
Related to this issue https://issuetracker.google.com/issues/199304067
The fix for the above issue seems to have implemented support for avd
repeatCount
, however infinite or -1 repeatCount does not seem to be supported byAnimatedImageVector
still.I may be wrong but from this piece of code below in the androidx.compose.animation.graphics.vector.Animator class. This function seems to only make the animation repeatable if the repeatCount is > 0.
However for xml avd,
repeatCount
is -1 or the xml enum infinite which in the view world makes the avd loop the animation infinitely. If the repeatCount is-1
in compose animation, as shown in the above code snippet, the animation does not repeat at all and only runs once.