The issue was caused because in the SearchableActivity
I was intercepting the search button and calling onSearchRequested()
:
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_search:
onSearchRequested();
return true;
default:
return false;
}
}
There's no need for onOptionsItemSelected()
to be overrided, deleteting this piece of code solved the issue.