[6.6.1]IndexOutOfBoundsException修复

This commit is contained in:
xuxinchao
2024-09-26 20:04:15 +08:00
parent 889f3a7724
commit 2e2365c9e8

View File

@@ -47,7 +47,7 @@ class TakeOverListAdapter(private val context: Context): RecyclerView.Adapter<Ta
fun notifyRecordItemChanged(info: TakeOverRecordInfo){
val pos = data?.indexOf(info)
pos?.let {
data!![pos] = info
data?.set(pos, info)
notifyItemChanged(pos)
}
}