Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search icon or return key will open google app #142

Open
sooshil opened this issue Jul 26, 2020 · 4 comments
Open

Search icon or return key will open google app #142

sooshil opened this issue Jul 26, 2020 · 4 comments

Comments

@sooshil
Copy link

sooshil commented Jul 26, 2020

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.

@sijan8s3
Copy link

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

@Younessmakhfi
Copy link

i have the same problem !!!

@sooshil
Copy link
Author

sooshil commented Apr 22, 2021

Not yet....

@Younessmakhfi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants