Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Feb 5, 2024
1 parent e33b702 commit cd8fe30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/io/legado/app/model/CacheBook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ object CacheBook {
var cacheBook = cacheBookMap[bookUrl]
if (cacheBook != null) {
//存在时更新,书源可能会变化,必须更新
cacheBook.bookSource = bookSource
cacheBook.book = book
return cacheBook
}
Expand All @@ -51,6 +52,7 @@ object CacheBook {
var cacheBook = cacheBookMap[book.bookUrl]
if (cacheBook != null) {
//存在时更新,书源可能会变化,必须更新
cacheBook.bookSource = bookSource
cacheBook.book = book
return cacheBook
}
Expand Down

0 comments on commit cd8fe30

Please sign in to comment.