pull/1879/head
kunfei 3 years ago
parent 7234e656c8
commit 411c66b9cd
  1. 2
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt

@ -75,7 +75,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
upCoverByRule(book)
bookSource = if (book.isLocalBook()) null else
appDb.bookSourceDao.getBookSource(book.origin)
isImportBookOnLine = bookSource?.bookSourceType ?: BookType.local == BookType.file
isImportBookOnLine = (bookSource?.bookSourceType ?: BookType.local) == BookType.file
if (book.tocUrl.isEmpty()) {
loadBookInfo(book)
} else if (!isImportBookOnLine) {

Loading…
Cancel
Save