Open musicha opened 8 years ago
Since ItemViewHoldersetPositionInSection(positionInSection) is only called in onBindViewHolder the method ItemViewHolder.getPositionInSection() returns wrong value when new items were inserted and SectionAdapter.notifySectionItemInserted was called.
ItemViewHoldersetPositionInSection(positionInSection)
onBindViewHolder
ItemViewHolder.getPositionInSection()
SectionAdapter.notifySectionItemInserted
Since
ItemViewHoldersetPositionInSection(positionInSection)
is only called inonBindViewHolder
the methodItemViewHolder.getPositionInSection()
returns wrong value when new items were inserted andSectionAdapter.notifySectionItemInserted
was called.