pull/32/head
kunfei 5 years ago
parent 13a5a7747d
commit d6959d1ae8
  1. 2
      app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt

@ -343,7 +343,7 @@ abstract class CommonRecyclerAdapter<ITEM>(protected val context: Context) : Rec
final override fun onBindViewHolder(holder: ItemViewHolder, position: Int, payloads: MutableList<Any>) { final override fun onBindViewHolder(holder: ItemViewHolder, position: Int, payloads: MutableList<Any>) {
if (!isHeader(holder.layoutPosition) && !isFooter(holder.layoutPosition)) { if (!isHeader(holder.layoutPosition) && !isFooter(holder.layoutPosition)) {
getItem(holder.layoutPosition)?.let { getItem(holder.layoutPosition - getHeaderCount())?.let {
itemDelegates.getValue(getItemViewType(holder.layoutPosition)) itemDelegates.getValue(getItemViewType(holder.layoutPosition))
.convert(holder, it, payloads) .convert(holder, it, payloads)
} }

Loading…
Cancel
Save