MaterialSearchBar icon indicating copy to clipboard operation
MaterialSearchBar copied to clipboard

Search icon or return key will open google app

Open sooshil opened this issue 3 years ago • 4 comments

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() with materialSearchBar but materialSearchBar doesn't have that listener.

sooshil avatar Jul 26 '20 20:07 sooshil

hello @sooshil , I also got the same error! did you found the any answer/solution?

sijan8s3 avatar Aug 21 '20 18:08 sijan8s3

i have the same problem !!!

Younessmakhfi avatar Apr 22 '21 23:04 Younessmakhfi

Not yet....

sooshil avatar Apr 22 '21 23:04 sooshil

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);

Younessmakhfi avatar Apr 23 '21 00:04 Younessmakhfi