Open sooshil opened 4 years ago
hello @sooshil , I also got the same error! did you found the any answer/solution?
i have the same problem !!!
Not yet....
in my case this function is the problem startSearch(text.toString(), true, null, true);
when i deleted it my problem solved , so my code for searching is : Intent suggestionIntent = new Intent(Intent.ACTION_SEARCH); suggestionIntent.putExtra(SearchManager.QUERY, text.toString()); handleIntent(suggestionIntent);
After typing required query, we have mainly two options to execute search query. We can choose from one of the suggestions displayed or we can click on the Search (Magnifier) button on soft keyboard. In my case, after clicking on Search button on soft keyboard, instead of executing search, the query gets transferred to Google app and results are shown there. Clicking on one of the suggestion works fine. I tried to implement
editText.setOnEditorActionListener(new TextView.OnEditorActionListener()
withmaterialSearchBar
but materialSearchBar doesn't have that listener.