mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -153,6 +153,7 @@ class EpubFile(var book: Book) {
|
||||
}
|
||||
//title标签中的内容不需要显示在正文中,去除
|
||||
elements.select("title").remove()
|
||||
elements.select("[style*=display:none]").remove()
|
||||
elements.select("img[src=\"cover.jpeg\"]").forEachIndexed { i, it ->
|
||||
if (i > 0) it.remove()
|
||||
}
|
||||
|
||||
@@ -165,7 +165,10 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
|
||||
*/
|
||||
fun loadChapterList(book: Book) {
|
||||
execute {
|
||||
loadChapterListAwait(book)
|
||||
if (loadChapterListAwait(book)) {
|
||||
ReadBook.upMsg(null)
|
||||
ReadBook.loadContent(resetPageOffset = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user