overridable getCollectionPosition() (#24)
This commit is contained in:
parent
1e0bed9fd2
commit
30ff9a9037
|
|
@ -84,6 +84,6 @@ open class DelegationListAdapter<TItem>(config: AsyncDifferConfig<TItem>) : Recy
|
|||
*/
|
||||
fun getList(): List<TItem> = differ.currentList
|
||||
|
||||
fun getCollectionPosition(adapterPosition: Int) = adapterPosition - getHeadersCount()
|
||||
open fun getCollectionPosition(adapterPosition: Int) = adapterPosition - getHeadersCount()
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue