Skip to content

Commit

Permalink
fix #2997
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang committed Dec 26, 2019
1 parent 44e3de1 commit 4fb6dde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ abstract class BaseQuickAdapter<T, VH : BaseViewHolder>
*
* @param holder True if this item should traverse all spans.
*/
protected fun setFullSpan(holder: RecyclerView.ViewHolder) {
protected open fun setFullSpan(holder: RecyclerView.ViewHolder) {
val layoutParams = holder.itemView.layoutParams
if (layoutParams is StaggeredGridLayoutManager.LayoutParams) {
layoutParams.isFullSpan = true
Expand Down Expand Up @@ -806,7 +806,7 @@ abstract class BaseQuickAdapter<T, VH : BaseViewHolder>
@JvmOverloads
fun setFooterView(view: View, index: Int = 0, orientation: Int = LinearLayout.VERTICAL): Int {
return if (!this::mFooterLayout.isInitialized || mFooterLayout.childCount <= index) {
addHeaderView(view, index, orientation)
addFooterView(view, index, orientation)
} else {
mFooterLayout.removeViewAt(index)
mFooterLayout.addView(view, index)
Expand Down

0 comments on commit 4fb6dde

Please sign in to comment.