Commit 707edba0 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Add missing offset

parent ccac20d3
......@@ -217,11 +217,11 @@ open class ListDataSource<T>(val list: List<T>,
override fun hasItemAtInstant(position: Int): Boolean {
return list.size > position
return list.size > (position - getPositionOffset(position))
override fun getItemAtInstant(position: Int): T {
return list[position]
return list[position + getPositionOffset(position)]
override fun hasItemAt(position: Int): Boolean {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment