This commit is contained in:
kunfei
2022-02-21 09:06:35 +08:00
parent c0dda0bf48
commit f49f2dff52
@@ -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 {