Commit 101ecd56 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Forgot to do it here as well

parent a2764722
Pipeline #7712 canceled with stage
in 16 seconds
......@@ -47,15 +47,17 @@ class ModelAdapterBuilder<T, VH : BaseViewHolder> internal constructor() {
}
if (source != null) {
val positionWithOffset = source.getPositionWithOffset(position)
if (source.hasItemAtInstant(positionWithOffset)) {
bindModelView(holder, position, source.getItemAtInstant(positionWithOffset))
} else {
informLoadingData()
coroutineScope.launch {
bindModelView(holder, position, source.getItemAt(positionWithOffset))
informLoadingDataFinished()
if(positionWithOffset >= 0) {
if (source.hasItemAtInstant(positionWithOffset)) {
bindModelView(holder, position, source.getItemAtInstant(positionWithOffset))
} else {
informLoadingData()
coroutineScope.launch {
bindModelView(holder, position, source.getItemAt(positionWithOffset))
informLoadingDataFinished()
}
}
}
} else bindNonModelView(holder, position)
} else bindNonModelView(holder, position)
}
......
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