SimpleSearchView icon indicating copy to clipboard operation
SimpleSearchView copied to clipboard

How to persistence search text

Open webserveis opened this issue 5 years ago • 3 comments

with .setKeepQuery(true) add persistence last query, but is there any way to initialize the text to a specific value?

webserveis avatar Aug 24 '19 10:08 webserveis

Hey, I found this

        searchView.setQuery("set default text", false)

false: no submit result true: propagate submit result

webserveis avatar Aug 24 '19 10:08 webserveis

This does not set the text for me, I do the following but it just gives me an empty search view:

    if (queryText.isNotEmpty()) {
            searchView.showSearch()
            searchView.setQuery(queryText, false)
        }

67Samuel avatar Aug 22 '21 07:08 67Samuel