I am trying to collapse my searchview after searching using the support library but i can't get my search view to collaspe

```
 final MenuItem searchItem = menu.findItem(R.id.action_search);
            final SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);
            ComponentName cn = new ComponentName(getApplicationContext(), PanelActivity.class);
            searchView.setSearchableInfo(
                    searchManager.getSearchableInfo(cn));
            searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
                @Override
                public boolean onQueryTextSubmit(String s) {

                    searchView.clearFocus();
                    searchView.setIconified(true);
                    MenuItemCompat.collapseActionView(searchItem);
                    // hideKeyboard();
                    return false;
                }

                @Override
                public boolean onQueryTextChange(String s) {
                    return false;
                }
            });

```