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

Loading…
Cancel
Save