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