mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user