title: Restore state of android's search view widget
body: <p>Im having a search view in my action bar and i want to restore the query after orientation changed. How can I do this?  Setting the query from the bundle using <code>SearchView.setQuery(query, false);</code> doesn't work as the searchview sets its query to <code>""</code> as soon as it expands.</p>
  
  <p>Heres the relevant code in my <code>onActivityCreated</code>:</p>
  
  <pre><code>if(savedInstanceState != null &amp;&amp; savedInstanceState.containsKey(BUNDLE_KEY_SEARCH))
      mCurFilter = savedInstanceState.getString(BUNDLE_KEY_SEARCH);
  </code></pre>
  
  <p>And here my <code>onSaveInstanceState</code>:</p>
  
  <pre><code>savedInstanceState.putString(BUNDLE_KEY_SEARCH, mCurFilter);
  super.onSaveInstanceState(savedInstanceState);
  </code></pre>
  
  <p>So how can I restore its state as im not able to do it using <code>setQuery</code>?
  Thanks to all</p>