pull/52/head
kunfei 5 years ago
parent 9ca429e6e2
commit b3fc672f57
  1. 2
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -15,7 +15,7 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
fun upChapterList() { fun upChapterList() {
execute { execute {
App.db.bookDao().allBooks.forEach { book -> App.db.bookDao().hasUpdateBooks.forEach { book ->
if (book.origin != BookType.local) { if (book.origin != BookType.local) {
if (!updateList.contains(book.bookUrl)) { if (!updateList.contains(book.bookUrl)) {
App.db.bookSourceDao().getBookSource(book.origin)?.let { bookSource -> App.db.bookSourceDao().getBookSource(book.origin)?.let { bookSource ->

Loading…
Cancel
Save