FastAdapter.getPosition implementation question
DeweyReed opened this issue · 1 comments
DeweyReed commented
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
- [√] Searched for similar issues
- [√] Checked out the sample application
- [√] Read the README
- [√] Checked out the CHANGELOG
- [√] Checked out the MIGRATION GUIDE
mikepenz commented
This looks indeed like a bug. Thanks for pointing this out. Will have a look