mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
ba60872e71
commit
3f0aaae700
@ -83,8 +83,8 @@ class ExploreShowViewModel(application: Application) : BaseViewModel(application
|
|||||||
}
|
}
|
||||||
for (page in range) {
|
for (page in range) {
|
||||||
val books = WebBook.exploreBookAwait(source, url, page)
|
val books = WebBook.exploreBookAwait(source, url, page)
|
||||||
if (reverse) books.reverse()
|
|
||||||
if (books.isEmpty()) break
|
if (books.isEmpty()) break
|
||||||
|
if (reverse) books.reverse()
|
||||||
searchBooks.addAll(books)
|
searchBooks.addAll(books)
|
||||||
}
|
}
|
||||||
return searchBooks
|
return searchBooks
|
||||||
|
Loading…
Reference in New Issue
Block a user