Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jan 21, 2025
1 parent c37c5d4 commit 8b0e122
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/io/legado/app/model/ReadBook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ object ReadBook : CoroutineScope by MainScope() {
fun upWebBook(book: Book) {
if (book.isLocal) {
bookSource = null
if (book.getImageStyle().isNullOrBlank() && (book.isImage || book.isPdf)) {
book.setImageStyle(Book.imgStyleFull)
}
} else {
appDb.bookSourceDao.getBookSource(book.origin)?.let {
bookSource = it
Expand Down

0 comments on commit 8b0e122

Please sign in to comment.