title: On Fragment hide , SearchView query text is empty
body: <p>I have <code>FoodListFragment</code> and <code>FoodDetailFragment</code>.
  In <code>FoodListFragment</code> I set a <code>SearchView</code> in the <code>topBar</code> with listener for <code>querytextChange</code>:</p>
  
  <pre><code>@Override
      public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
          // Inflate the menu; this adds items to the action bar if it is present.
          this.getActivity().getMenuInflater().inflate(R.menu.main, menu);
  
          //Associate searchable configuration with the SearchView
          searchManager = (SearchManager) this.getActivity().getSystemService(Context.SEARCH_SERVICE);
  
          MenuItem searchItem = menu.findItem(R.id.search);
          searchView = (SearchView) searchItem.getActionView();
  
          searchView.setSearchableInfo(searchManager.getSearchableInfo(this.getActivity().getComponentName()));
          searchView.setMaxWidth(Integer.MAX_VALUE);
          searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
  
  
              @Override
              public boolean onQueryTextChange(String textToFind) {
                  // your text view here
                  if (foodAdapter == null) {
                      foodAdapter = ((FoodListFragment) getFragmentManager().findFragmentByTag(Const.FOODLIST_FRAGMENT)).getFoodAdapter();
                  }
                  foodAdapter.getFilter().filter(textToFind.toString());
                  return true;
              }
  
              @Override
              public boolean onQueryTextSubmit(String textToFind) {
                  Log.d("submit by search", TAG);
                  if (foodAdapter == null) {
                      foodAdapter = ((FoodListFragment) getFragmentManager().findFragmentByTag(Const.FOODLIST_FRAGMENT)).getFoodAdapter();
                  }
                  foodAdapter.getFilter().filter(textToFind.toString());
                  searchView.clearFocus();
                  return true;
              }
  
          });
          super.onCreateOptionsMenu(menu, inflater);
      }
  </code></pre>
  
  <p>When I switch with show and hide, from <code>FoodListFragment</code> to <code>FoodDetailFragment</code>:</p>
  
  <pre><code>public void switchContent(int id, Fragment fragment, String tagFrag) {
  
      FragmentTransaction transaction = getFragmentManager().beginTransaction();
  
      if(fragment.isAdded()){
          transaction.show(fragment);
      } else {
          transaction.add(id, fragment, tagFrag);
      }
  
      transaction.addToBackStack(null);
      if(Const.FOODDETAIL_FRAGMENT.equals(tagFrag)){
          if(getFragmentManager().findFragmentByTag(Const.FOODLIST_FRAGMENT) != null){
              FoodListFragment foodListFrag = (FoodListFragment) getFragmentManager().findFragmentByTag(Const.FOODLIST_FRAGMENT);
              transaction.hide(foodListFrag);
          }
      }
  
      // Commit the transaction
      transaction.commit();
  
  }
  </code></pre>
  
  <p>is invoked the <code>onQueryTextChange</code> method of <code>searchView</code> with <code>textToFind</code> empty and so when I come back to <code>FoodListFragment</code>, <code>searchView</code> does not maintain last search.
  Why it is invoked <code>onQueryTextChange</code> during hide of Fragment?</p>
  
  <p>And why textToFind is empty?</p>