fix: crash when search suggestions get created before search view

This commit is contained in:
Bnyro 2023-10-06 11:03:37 +02:00
parent 60db5e3691
commit 07c8142119

View File

@ -363,6 +363,8 @@ class MainActivity : BaseActivity() {
* Update the query text in the search bar without opening the search suggestions
*/
fun setQuerySilent(query: String) {
if (!this::searchView.isInitialized) return
shouldOpenSuggestions = false
searchView.setQuery(query, false)
shouldOpenSuggestions = true