feat: 优化代码

pull/120/head
kunfei 5 years ago
parent 5727d11946
commit 0006590048
  1. 2
      app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt

@ -58,7 +58,7 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
App.db.searchBookDao().insert(searchBook) App.db.searchBookDao().insert(searchBook)
if (screenKey.isEmpty()) { if (screenKey.isEmpty()) {
searchBooks.add(searchBook) searchBooks.add(searchBook)
} else if (searchBook.originName.contains(screenKey)) { } else if (searchBook.name.contains(screenKey)) {
searchBooks.add(searchBook) searchBooks.add(searchBook)
} }
upAdapter() upAdapter()

Loading…
Cancel
Save