Skip to content

Commit fae450d

Browse files
committed
update
1 parent a3b3d16 commit fae450d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adapterDSL/src/main/java/com/glimmer/dsl/adapter/BaseListAdapter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ abstract class BaseListAdapter<VH : BaseVH<Any, *>>(callback: ItemDiffCallback<A
3333
}
3434
}
3535

36+
override fun getItemId(position: Int): Long {
37+
return getItem(position).hashCode().toLong()
38+
}
39+
3640
override fun getItemViewType(position: Int): Int {
3741
// DSL传参<优先>
3842
for (index in 0 until typeVHs.size()) {

0 commit comments

Comments
 (0)