|
|
|
@ -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 |
|
|
|
) { |
|
|
|
) { |
|
|
|
|