mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
e33b702f75
commit
cd8fe30880
@ -37,6 +37,7 @@ object CacheBook {
|
|||||||
var cacheBook = cacheBookMap[bookUrl]
|
var cacheBook = cacheBookMap[bookUrl]
|
||||||
if (cacheBook != null) {
|
if (cacheBook != null) {
|
||||||
//存在时更新,书源可能会变化,必须更新
|
//存在时更新,书源可能会变化,必须更新
|
||||||
|
cacheBook.bookSource = bookSource
|
||||||
cacheBook.book = book
|
cacheBook.book = book
|
||||||
return cacheBook
|
return cacheBook
|
||||||
}
|
}
|
||||||
@ -51,6 +52,7 @@ object CacheBook {
|
|||||||
var cacheBook = cacheBookMap[book.bookUrl]
|
var cacheBook = cacheBookMap[book.bookUrl]
|
||||||
if (cacheBook != null) {
|
if (cacheBook != null) {
|
||||||
//存在时更新,书源可能会变化,必须更新
|
//存在时更新,书源可能会变化,必须更新
|
||||||
|
cacheBook.bookSource = bookSource
|
||||||
cacheBook.book = book
|
cacheBook.book = book
|
||||||
return cacheBook
|
return cacheBook
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user