private void showSearchView(){
  if (mSearchView != null && !oldQuery.isEmpty()) {
    mSearchView.setIconified(false);
    mSearchView.setQuery(oldQuery,false);
    showSearchView=false;
  }
}

private void showSearchView ( ) { if ( mSearchView != null && ! oldQuery . isEmpty ( ) ) { mSearchView . setIconified ( false ) ; mSearchView . setQuery ( oldQuery , false ) ; showSearchView = false ; } }
sets searchview iconifed to false and sets oldquery as searchquery
