Skip to content

feat(android): add the offset model natives - #46

Open
SectionTN wants to merge 1 commit into
refactor/core-list-layoutfrom
feat/android-model-natives
Open

SectionTN wants to merge 1 commit into
refactor/core-list-layoutfrom
feat/android-model-natives

Conversation

@SectionTN

Copy link
Copy Markdown
Owner

stacked on #45. each FlumeView will own one copy of the C++ list model through a handle, so Android can read its offsets from the model instead of RecyclerView's estimate. this adds the natives and the Kotlin interface they sit behind, and nothing calls them yet.

ListLayout.setLengths takes the lengths RecyclerView laid out as position and length pairs, and skips the ones that didn't change, so a frame with nothing new does no prefix sum work. landingAt turns an offset from the content start into a row plus how far past its start the offset is, which scrollToOffset needs to land exactly. the store's ops reach the model from the same arrays the listener already sends to Kotlin.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f36ce247-5900-4773-a931-23d23b9a0d81

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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