diff --git a/app/src/main/java/io/legado/app/ui/book/read/SearchMenu.kt b/app/src/main/java/io/legado/app/ui/book/read/SearchMenu.kt index 3e6a444d0..74712ea65 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/SearchMenu.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/SearchMenu.kt @@ -40,8 +40,8 @@ class SearchMenu @JvmOverloads constructor( private var onMenuOutEnd: (() -> Unit)? = null private val searchResultList: MutableList = mutableListOf() - private var currentSearchResultIndex: Int = 0 - private var lastSearchResultIndex: Int = 0 + private var currentSearchResultIndex: Int = -1 + private var lastSearchResultIndex: Int = -1 private val hasSearchResult: Boolean get() = searchResultList.isNotEmpty() val selectedSearchResult: SearchResult?