Skip to content

Commit 0714b38

Browse files
committed
update
1 parent c799de0 commit 0714b38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ abstract class BaseListAdapter<VH : BaseVH<Any, *>>(callback: ItemDiffCallback<A
3535

3636
override fun getItemId(position: Int): Long {
3737
getItem(position)?.apply {
38-
return hashCode().toLong()
38+
doWithTry {
39+
return hashCode().toLong()
40+
}
41+
return super.getItemId(position)
3942
}
4043
return super.getItemId(position)
4144
}

0 commit comments

Comments
 (0)