pull/1649/head
kunfei 3 years ago
parent 4f70c33168
commit 15d24969db
  1. 2
      app/src/main/java/io/legado/app/base/adapter/DiffRecyclerAdapter.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/changecover/ChangeCoverViewModel.kt

@ -146,7 +146,7 @@ abstract class DiffRecyclerAdapter<ITEM, VB : ViewBinding>(protected val context
final override fun onBindViewHolder(holder: ItemViewHolder, position: Int) {}
open fun onCurrentListChanged() {
//可继承
}
@Suppress("UNCHECKED_CAST")

@ -37,7 +37,7 @@ class ChangeCoverViewModel(application: Application) : BaseViewModel(application
searchSuccess = {
if (!searchBooks.contains(it)) {
searchBooks.add(it)
trySend(searchBooks)
trySend(ArrayList(searchBooks))
}
}

Loading…
Cancel
Save