title: SearchView's OnCloseListener doesn't work
body: <p>I'm trying to add support for the <code>SearchView</code> in the Android 3.0+ ActionBar, but I can't get the <code>OnCloseListener</code> to work.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.menu, menu);
      searchView = (SearchView) menu.findItem(R.id.search_textbox).getActionView();
      searchView.setOnQueryTextListener(new OnQueryTextListener() {
          @Override
          public boolean onQueryTextChange(String newText) {
              searchLibrary(newText);
              return false;
          }
          @Override
          public boolean onQueryTextSubmit(String query) { return false; }
      });
      searchView.setOnCloseListener(new OnCloseListener() {
          @Override
          public boolean onClose() {
              System.out.println("Testing. 1, 2, 3...");
              return false;
          }
      });
      return true;
  }
  </code></pre>
  
  <p>The search works great and every is working except for the <code>OnCloseListener</code>. Nothing is being printed to Logcat. Here's the Logcat for when I'm pressing the "Close" button:</p>
  
  <pre><code>02-17 13:01:52.914: I/TextType(446): TextType = 0x0
  02-17 13:01:57.344: I/TextType(446): TextType = 0x0
  02-17 13:02:02.944: I/TextType(446): TextType = 0x0
  </code></pre>
  
  <p>I've looked through <a href="http://developer.android.com/reference/android/widget/SearchView.OnCloseListener.html">the documentation</a> and samples, but nothing seemed to change it. I'm running it on a Asus Transformer Prime and a Galaxy Nexus, both on Ice Cream Sandwich. Any ideas?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Yes - <code>System.out.println()</code> <em>does</em> work. Here's proof:</p>
  
  <pre><code>   @Override
   public boolean onQueryTextChange(String newText) {
      System.out.println(newText + "hello");
      searchLibrary(newText);
      return false;
   }
  </code></pre>
  
  <p>Results in this Logcat:</p>
  
  <pre><code>02-17 13:04:20.094: I/System.out(21152): hello
  02-17 13:04:24.914: I/System.out(21152): thello
  02-17 13:04:25.394: I/System.out(21152): tehello
  02-17 13:04:25.784: I/System.out(21152): teshello
  02-17 13:04:26.064: I/System.out(21152): testhello
  </code></pre>