Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ interface IVhModelWrapper<M : IVhModelType> : IVhModelType {
/**
* As sub model list.
*/
val subList: List<M>
val subList: Iterable<M>
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import io.goooler.demoapp.adapter.rv.core.ISpanSize.Companion.SPAN_SIZE_FULL
import io.goooler.demoapp.adapter.rv.core.ISpanSize.Companion.SPAN_SIZE_SINGLE

/**
* Created on 2020/10/22.
Expand Down Expand Up @@ -127,7 +126,7 @@ internal class RvAdapterHelper<M : IVhModelType>(private val adapter: IRvAdapter
(adapter[position] as? ISpanSize)?.spanSize?.let { size ->
return if (size == SPAN_SIZE_FULL) it.spanCount else size
}
return SPAN_SIZE_SINGLE
return it.spanCount
}
}
}
Expand Down