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

MenuItemClickListener not working the first time we start activity #323

Closed
Divya1903 opened this issue Mar 14, 2019 · 1 comment
Closed

Comments

@Divya1903
Copy link

I have added a menu item on right most of searchView, and wanted to open an activity on its click, but the onMenuItemClickListener callback works only when I start typing something on searchView, and doesn't work on first launch of the app. Do reply if there is some method available to achieve the above functionality.

@Divya1903
Copy link
Author

That was my fault actually, mistake was I added this callback inside onquerychangelistener callback. Now it works as it should.

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

1 participant