优化
This commit is contained in:
@@ -146,7 +146,7 @@ abstract class DiffRecyclerAdapter<ITEM, VB : ViewBinding>(protected val context
|
|||||||
final override fun onBindViewHolder(holder: ItemViewHolder, position: Int) {}
|
final override fun onBindViewHolder(holder: ItemViewHolder, position: Int) {}
|
||||||
|
|
||||||
open fun onCurrentListChanged() {
|
open fun onCurrentListChanged() {
|
||||||
|
//可继承
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class ChangeCoverViewModel(application: Application) : BaseViewModel(application
|
|||||||
searchSuccess = {
|
searchSuccess = {
|
||||||
if (!searchBooks.contains(it)) {
|
if (!searchBooks.contains(it)) {
|
||||||
searchBooks.add(it)
|
searchBooks.add(it)
|
||||||
trySend(searchBooks)
|
trySend(ArrayList(searchBooks))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user