pull/1511/head
gedoor 3 years ago
parent 91f6abfe74
commit 6dc6a45361
  1. 4
      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 var onMenuOutEnd: (() -> Unit)? = null
private val searchResultList: MutableList<SearchResult> = mutableListOf() private val searchResultList: MutableList<SearchResult> = mutableListOf()
private var currentSearchResultIndex: Int = 0 private var currentSearchResultIndex: Int = -1
private var lastSearchResultIndex: Int = 0 private var lastSearchResultIndex: Int = -1
private val hasSearchResult: Boolean private val hasSearchResult: Boolean
get() = searchResultList.isNotEmpty() get() = searchResultList.isNotEmpty()
val selectedSearchResult: SearchResult? val selectedSearchResult: SearchResult?

Loading…
Cancel
Save