优化
This commit is contained in:
1 parent
c0dda0bf48
commit
f49f2dff52
1 file changed
+3
@@ -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