-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manually play animation again when returned from back stack #1841
Comments
It seems that lottie view incorrectly handles the saved state. The issue is gone after adding Previously I though that adding |
@darek607 Can you attach a sample project that reproduces this? |
@gpeal I've created a basic sample demonstrating the issue: https://github.com/darek607/Lottie-Android-Bug
|
Thanks for this library!
I encountered a strange bug and spent quite much time to ivestigate the issue. I wanted to play animation manually every time fragment view is loaded (
onViewCreated
).Steps:
playAnimation
Expected result:
The animation should play again.
Result: The animation usually don't animate again after navigating back to fragment A. It shows a fully loaded anim immediately.
Tested on 3.7.1 and 3.2.2 versions.
The text was updated successfully, but these errors were encountered: