This commit is contained in:
kunfei
2022-02-21 09:06:35 +08:00
parent 11eed6f35d
commit 912bee7c05

View File

@@ -46,6 +46,9 @@ abstract class DiffRecyclerAdapter<ITEM, VB : ViewBinding>(protected val context
recyclerView.adapter = this
}
/**
* items与上一次提交的对象必须不同,如果指向相同地址即使数据变化也不会刷新
*/
@Synchronized
fun setItems(items: List<ITEM>?) {
kotlin.runCatching {