MaterialSearchView icon indicating copy to clipboard operation
MaterialSearchView copied to clipboard

Please remove text length > 0 into onSubmitQuery

Open carmas123 opened this issue 7 years ago • 1 comments

I cannot intercept when the use clear all text and close query. I try with onSubmitQuery but if the text is empty the event will not fired. Please can you change the if into onSubmitQuery:

from if(query != null && TextUtils.getTrimmedLength(query) > 0 && (this.mOnQueryChangeListener == null || !this.mOnQueryChangeListener.onQueryTextSubmit(query.toString()))) {

to if(query != null && (this.mOnQueryChangeListener == null || !this.mOnQueryChangeListener.onQueryTextSubmit(query.toString()))) {

regards.

carmas123 avatar Mar 06 '17 18:03 carmas123

It's here: https://github.com/MiguelCatalan/MaterialSearchView/issues/20

pedrofsn avatar Aug 03 '17 14:08 pedrofsn