Skip to content

Conversation

@venusic
Copy link

@venusic venusic commented Oct 14, 2025

Prevent crashes during skeleton loading by ensuring UI initialization runs on the main thread and by catching/logging load failures.

Key changes:
Added @mainthread setSkeletonDrawable(...) to centralize init and frame scheduling.
Made loadFrom(AndroidSkeletonDrawableLoader) public, async, with try/catch; posts setSkeletonDrawable to main thread; logs errors on failure.
loadFromDrawable(...) now posts to the main thread.

Impact:
Avoids crashes on load errors; enforces UI-thread correctness; no breaking changes.

  • I confirm this contribution is made under the Esoteric Software LLC CLA.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant