Skip to content

fix(android): draw initial visible frame before resumed loop#448

Open
molind wants to merge 1 commit intorive-app:masterfrom
molind:fix/android-initial-visible-frame
Open

fix(android): draw initial visible frame before resumed loop#448
molind wants to merge 1 commit intorive-app:masterfrom
molind:fix/android-initial-visible-frame

Conversation

@molind
Copy link
Copy Markdown

@molind molind commented Apr 10, 2026

Used rive to add some interactivity to onboarding screens in my app. And stumbled upon annoying behavior, while compose is inside animation - Rive don't show even first frame. All because it waits for a Lifecycle.State.RESUMED.

Suggested fix:

  • request one initial visible draw before entering the repeatOnLifecycle(RESUMED) animation loop
  • reset that behavior per surface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant