Merge pull request #1630 from 821938089/master

修复 #1460
pull/1649/head
kunfei 3 years ago committed by GitHub
commit 533f8554aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/java/io/legado/app/ui/book/info/BookInfoViewModel.kt

@ -224,7 +224,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
execute {
bookData.value?.let { book ->
if (book.order == 0) {
book.order = appDb.bookDao.maxOrder + 1
book.order = appDb.bookDao.minOrder - 1
}
appDb.bookDao.getBook(book.name, book.author)?.let {
book.durChapterPos = it.durChapterPos
@ -254,7 +254,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
execute {
bookData.value?.let { book ->
if (book.order == 0) {
book.order = appDb.bookDao.maxOrder + 1
book.order = appDb.bookDao.minOrder - 1
}
appDb.bookDao.getBook(book.name, book.author)?.let {
book.durChapterPos = it.durChapterPos

Loading…
Cancel
Save