Commit fb748a15 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

make nonSourcePositions mutable

parent 358bdb07
......@@ -184,7 +184,7 @@ abstract class DataSource<T>(nonSourcePositions: Collection<Int> = emptyList())
lateinit var adapterUpdateCallback: ListUpdateCallback
internal set
val nonSourcePositions = nonSourcePositions.toList().sortedBy {
var nonSourcePositions = nonSourcePositions.toList().sortedBy {
it
}
......@@ -209,7 +209,7 @@ abstract class DataSource<T>(nonSourcePositions: Collection<Int> = emptyList())
abstract fun cleanup()
}
class ListDataSource<T>(val list: List<T>,
open class ListDataSource<T>(val list: List<T>,
nonSourcePositions: Collection<Int> = emptyList()) : DataSource<T>(nonSourcePositions) {
override fun loadInitialData() {
......
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