Have you tried InputMethodManager.HIDE_NOT_ALWAYS?
InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
inputManager.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
I think you can also try clearing the focus from the EditText/SearchView too. For example:
searchBar = (SearchView) v.findViewById(R.id.ditto_search_bar);
searchBar.clearFocus();