pull/1649/head
kunfei 3 years ago
parent 11eed6f35d
commit 912bee7c05
  1. 3
      app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt

@ -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 {

Loading…
Cancel
Save