mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
91f6abfe74
commit
6dc6a45361
@ -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…
Reference in New Issue
Block a user