From 1445410c207ccc234da296bd46d9ba7cab941f32 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 8 Feb 2020 18:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/search/SearchViewModel.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt b/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt index 17cd8b7bf..1d0ff163a 100644 --- a/app/src/main/java/io/legado/app/ui/book/search/SearchViewModel.kt +++ b/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 -> var hasSame = false - for (i in copyDataS.indices) { - val searchBook = copyDataS[i] + for (searchBook in copyDataS) { if (item.name == searchBook.name && item.author == searchBook.author ) {