arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 667 forks source link

MenuItemClickListener not working the first time we start activity #323

Closed Divya1903 closed 5 years ago

Divya1903 commented 5 years ago

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 commented 5 years ago

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