Skip to content

fix(android): resize the render surface when the view size changes - #419

Open
mfazekas wants to merge 1 commit into
mainfrom
claude/fix-418-surface-resize
Open

mfazekas wants to merge 1 commit into
mainfrom
claude/fix-418-surface-resize

Conversation

@mfazekas

Copy link
Copy Markdown
Collaborator

On the new backend, onSurfaceTextureSizeChanged now resizes the RiveSurface through a reflective call to the Kotlin-internal RiveSurface.resize (resolved by name prefix and (int, int) signature, cached), mirroring what upstream RiveView does. It fails open: if the method is missing or throws, it logs a warning and keeps the old size. Fit.Layout resizes are also followed by a zero advance, since the render loop stops advancing a settled or paused state machine and the artboard resize would otherwise never apply. Adds an Issue #418 reproducer page.

Fixes #418

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.

[Android] Fit.Layout content stale after resize on the new backend (surface keeps creation size)

1 participant