pull/94/head
kunfei 5 years ago
parent 120dc86e39
commit 1445410c20
  1. 3
      app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt

@ -98,8 +98,7 @@ class SearchViewModel(application: Application) : BaseViewModel(application) {
//存在 //存在
newDataS.forEach { item -> newDataS.forEach { item ->
var hasSame = false var hasSame = false
for (i in copyDataS.indices) { for (searchBook in copyDataS) {
val searchBook = copyDataS[i]
if (item.name == searchBook.name if (item.name == searchBook.name
&& item.author == searchBook.author && item.author == searchBook.author
) { ) {

Loading…
Cancel
Save