pull/37/head
kunfei 5 years ago
parent 1056b17076
commit f94d9503d7
  1. 2
      app/src/main/java/io/legado/app/base/adapter/CommonRecyclerAdapter.kt

@ -130,9 +130,11 @@ abstract class CommonRecyclerAdapter<ITEM>(protected val context: Context) : Rec
if (items != null) {
this.items.addAll(items)
}
if (notify) {
notifyDataSetChanged()
}
}
}
fun setItem(position: Int, item: ITEM) {
synchronized(lock) {

Loading…
Cancel
Save