|
|
@ -112,10 +112,13 @@ public class ConversationListFragment extends SherlockListFragment
|
|
|
|
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
|
|
|
|
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onQueryTextSubmit(String query) {
|
|
|
|
public boolean onQueryTextSubmit(String query) {
|
|
|
|
|
|
|
|
if (isAdded()) {
|
|
|
|
ConversationListFragment.this.queryFilter = query;
|
|
|
|
ConversationListFragment.this.queryFilter = query;
|
|
|
|
ConversationListFragment.this.getLoaderManager().restartLoader(0, null, ConversationListFragment.this);
|
|
|
|
ConversationListFragment.this.getLoaderManager().restartLoader(0, null, ConversationListFragment.this);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean onQueryTextChange(String newText) {
|
|
|
|
public boolean onQueryTextChange(String newText) {
|
|
|
|
return onQueryTextSubmit(newText);
|
|
|
|
return onQueryTextSubmit(newText);
|
|
|
|