title: How to know when SearchView in action bar is closed?
body: <p>I have a problem: I have a <code>listView</code> in a <code>Fragment</code>, I implemented a searchView (actionView) to filter the list in the <code>listView</code> with the searchView <code>onQueryTextChange</code> event. I don't have problems in this part and everything works fine. </p>
  
  <pre><code>adapter = new ListaEmpleadosAdapter(getActivity(), empleadoItems, context);
  SearchView searchView = (SearchView) menu.findItem(R.id.menu_buscar).getActionView();
  
  SearchView.OnQueryTextListener queryTextListener = new SearchView.OnQueryTextListener() {
      @Override
      public boolean onQueryTextSubmit(String s) {
          return false;
      }
  
      @Override
      public boolean onQueryTextChange(String s) {
          try {
              adapter.getFilter().filter(s);
              adapter.notifyDataSetChanged();
          } catch (Exception e) {
              System.err.println("ERROR FragmentEmpleado -&gt; " + e.toString());
          }
          return true;
      }
  };
  </code></pre>
  
  <p>When I search something and press back button in the first time, the soft keyboard is closed. That's normal. When I press back button again, the searchView is closed, that's normal, but the list doesn't return to have the initial items.</p>
  
  <p>How I can get the event when searchView is collapsed (because <code>searchView.setOnCloseListener</code> doesn't work) to restore the initial list items? Or any way to restore the initial list items deleting the adapter filter...</p>
  
  <p>HISTORY: </p>
  
  <ol>
  <li>The list of employees</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/u3FZv.png" alt="list of employees"></p>
  
  <ol start="2">
  <li>The list of employees with a specific filter (after the first back button press, the keyboard is closed)</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/LL1Jj.png" alt="The list of employees with a specific filter"></p>
  
  <ol start="3">
  <li>The list of employees with searchView closed (but no restore the original list after second back button press)</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/zJLqA.png" alt="list of employees with searchView closed"></p>
  
  <p>Thanks a lot!</p>