mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: crash when search suggestions get created before search view
This commit is contained in:
parent
60db5e3691
commit
07c8142119
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user