Skip to content

Commit

Permalink
perf: submitList 中,去除 list 引用地址判断
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang2 committed Nov 7, 2023
1 parent 50a4cf2 commit c51c612
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,6 @@ abstract class BaseQuickAdapter<T : Any, VH : RecyclerView.ViewHolder>(
*/
open fun submitList(list: List<T>?) {
val newList = list ?: emptyList()
if (list === items) return

mLastPosition = -1

Expand Down

0 comments on commit c51c612

Please sign in to comment.