mikepenz/FastAdapter

FastAdapter.getPosition implementation question

DeweyReed opened this issue · 1 comments

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

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