pull/1395/head
gedoor 3 years ago
parent 7b7bb0a97e
commit 9d3f7980e2
  1. 3
      app/src/main/java/io/legado/app/base/adapter/RecyclerAdapter.kt

@ -184,6 +184,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co
}
}
@SuppressLint("NotifyDataSetChanged")
@Synchronized
fun addItems(newItems: List<ITEM>) {
kotlin.runCatching {
@ -219,6 +220,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co
}
}
@SuppressLint("NotifyDataSetChanged")
@Synchronized
fun removeItems(items: List<ITEM>) {
kotlin.runCatching {
@ -279,6 +281,7 @@ abstract class RecyclerAdapter<ITEM, VB : ViewBinding>(protected val context: Co
}
}
@SuppressLint("NotifyDataSetChanged")
@Synchronized
fun clearItems() {
kotlin.runCatching {

Loading…
Cancel
Save