mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
优化
This commit is contained in:
parent
69979321bc
commit
c20b2b3cc9
@ -938,7 +938,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
||||
}
|
||||
}
|
||||
|
||||
if (previousResult.chapterIndex != searchResult.chapterIndex) {
|
||||
if (searchResult.chapterIndex != previousResult?.chapterIndex) {
|
||||
viewModel.openChapter(searchResult.chapterIndex) {
|
||||
jumpToPosition()
|
||||
}
|
||||
|
@ -46,8 +46,8 @@ class SearchMenu @JvmOverloads constructor(
|
||||
get() = searchResultList.isNotEmpty()
|
||||
val selectedSearchResult: SearchResult?
|
||||
get() = searchResultList.getOrNull(currentSearchResultIndex)
|
||||
val previousSearchResult: SearchResult
|
||||
get() = searchResultList[lastSearchResultIndex]
|
||||
val previousSearchResult: SearchResult?
|
||||
get() = searchResultList.getOrNull(lastSearchResultIndex)
|
||||
|
||||
init {
|
||||
initAnimation()
|
||||
|
Loading…
Reference in New Issue
Block a user