@Override public boolean onQueryTextChange(String newText) { if (TextUtils.isEmpty(newText)) { grid_currentQuery = null; } else { grid_currentQuery = newText; adapter.getFilter().filter(newText); } return false; }
@Override public boolean onQueryTextSubmit(String query) { adapter.getFilter().filter(query); return false; }