diff --git a/library/src/main/java/com/chad/library/adapter/base/viewholder/BaseViewHolder.kt b/library/src/main/java/com/chad/library/adapter/base/viewholder/BaseViewHolder.kt index 2acfd0736..906130e06 100644 --- a/library/src/main/java/com/chad/library/adapter/base/viewholder/BaseViewHolder.kt +++ b/library/src/main/java/com/chad/library/adapter/base/viewholder/BaseViewHolder.kt @@ -59,7 +59,7 @@ open class BaseViewHolder(view: View) : RecyclerView.ViewHolder(view) { return this } - open fun setText(@IdRes viewId: Int, @StringRes strId: Int): BaseViewHolder? { + open fun setText(@IdRes viewId: Int, @StringRes strId: Int): BaseViewHolder { getView(viewId).setText(strId) return this }