MaterialSearchView
MaterialSearchView copied to clipboard
Please remove text length > 0 into onSubmitQuery
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.
It's here: https://github.com/MiguelCatalan/MaterialSearchView/issues/20