title: Android SearchView - empty query doesn't work
body: <p>I'm trying to add recent searches to the SearchView on a toolbar:    </p>
  
  <pre><code> mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
      @Override
      public boolean onQueryTextSubmit(String s) {
          return false;
      }
  
      @Override
      public boolean onQueryTextChange(String s) {
          if (s!= null )
          {
              if (s.isEmpty()){
                  loadRecentList();
              }
              else{
                  search(s);
              }
          }
          return true;
      }
  
  });
  </code></pre>
  
  <p>The search is working fine, but I can't see the recent list results. </p>
  
  <p>I found this <a href="https://stackoverflow.com/questions/13576283/android-searchview-onquerytextlistener-onquerytextsubmit-not-fired-on-empty-quer">Android SearchView.OnQueryTextListener OnQueryTextSubmit not fired on empty query string</a></p>
  
  <p>but modifying the ActionBar library is not a nice solution.</p>
  
  <p>Does anyone have another solution? 
  Thanks.</p>
  
  <p>Edit:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater = getMenuInflater();
      inflater.inflate(R.menu.menu_main_activity, menu);
      searchItem = menu.findItem(R.id.btn_earch);
      initSearchView();
      setSearchViewListener();
      return super.onCreateOptionsMenu(menu);
  }
  
  
  
   protected void initSearchView() {
      final String CURSOR_RESOURCE_ID = "mCursorDrawableRes";
      final int THRESHOLD = 1;
  
      mSearchView = (SearchView) searchItem.getActionView();
  
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
          mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
      mSearchView.setMeasureWithLargestChildEnabled(true);
  
      autoCompleteTextView = (AutoCompleteTextView) mSearchView.findViewById(R.id.search_src_text);
      autoCompleteTextView.setThreshold(THRESHOLD);
  
  
  }
  
  protected void setSearchViewListener() {
  
  
  
      mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
          @Override
          public boolean onQueryTextSubmit(String s) {
              return false;
          }
  
          @Override
          public boolean onQueryTextChange(String s) {
              if (s!= null )
              {
                  if (s.isEmpty()){
                      loadRecentList();
                  }
                  else{
                      search(s);
                  }
              }
              return true;
          }
  
      });
  </code></pre>
  
  <p>btn_search item:</p>
  
  <pre><code>&lt;item
      android:id="@+id/btn_search"
      android:icon="@drawable/ic_search_small"
      android:title="@string/tooltip_search"
      app:actionViewClass="android.support.v7.widget.SearchView"
      app:showAsAction="always"
      /&gt;
  </code></pre>