mancj / MaterialSearchBar

Material Design Search Bar for Android
Other
2.03k stars 332 forks source link

Using in Fragment does not open second time the search field #122

Open bemrePG opened 5 years ago

bemrePG commented 5 years ago

Hi,

first of all thanks for the great work.

I trying to you use your library in a fragment and after i clicked the search icon once and disabledSearch by clicking on back arrow a second click on the search icon is not opening the search field. So i debugged this and found that when search bar is disabling after first time the search icon has the id of mt_clear button and the click listener jumps right away into the case for mt_clear button.

I really would appreciate if you can fix this. If i am doing anything wrong please let me know.

Best wishes