Skip to content
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

FastAdapter.getPosition implementation question #988

Closed
DeweyReed opened this issue Apr 9, 2021 · 1 comment · Fixed by #989
Closed

FastAdapter.getPosition implementation question #988

DeweyReed opened this issue Apr 9, 2021 · 1 comment · Fixed by #989
Assignees

Comments

@DeweyReed
Copy link
Contributor

About this issue

FastAdapter.getPosition loops through adapters and accumulates item count until the target is found. My question is, why to use position = adapter.adapterItemCount instead of +=? Using = remembers the last adapter item count rather than all item count before. Is this a bug, or is my understanding wrong?

Details

  • [5.3.5] Used library version
  • [4.1.3] Used tooling / Android Studio version

Checklist

@mikepenz mikepenz self-assigned this Apr 9, 2021
@mikepenz
Copy link
Owner

mikepenz commented Apr 9, 2021

This looks indeed like a bug. Thanks for pointing this out. Will have a look

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 a pull request may close this issue.

2 participants