title: ActionbarSherlock menuitem setActionView(null) does not stop rotating
body: <p>Let me give you a brief scenario what is happening.</p>
  
  <p>I want to have a refresh button on my action bar which switches to the indeterminateProgressStyle (a rotating circle) while somethings are loading.</p>
  
  <p>In my project i have the following layouts. (e.g. res/layout/actionbar_indeterminate_progress.xml)</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:gravity="center"&gt;
      &lt;ProgressBar android:layout_width="32dp"
          android:layout_height="32dp"
          android:layout_marginLeft="12dp"
          android:layout_marginRight="12dp"
          android:layout_gravity="center"
          style="?android:attr/indeterminateProgressStyle" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>and when the user clicks on the refresh button I do the following.</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu) {
      com.actionbarsherlock.view.MenuInflater inflater = getSupportMenuInflater();
      inflater.inflate(R.menu.main, menu);
  
      refreshMenuItem = menu.findItem(R.id.menu_refresh);
  
      if (refreshMenuItem != null) {
          // Show refresh button if we are in action bar mode, but only if
          // there's something to be refreshed
          boolean selectedItemExists = (getCurrentBrowsingContainer() != null);
          refreshMenuItem.setVisible(selectedItemExists);
          if (is_spinner_running) {
              refreshMenuItem.setActionView(R.layout.actionbar_indeterminate_progress);
          } else {
              refreshMenuItem.setActionView(null);
          }
      }
  
      return super.onCreateOptionsMenu(menu);
  }
  </code></pre>
  
  <p>also my res/menu/main.xml  looks like below.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      ...
          &lt;item android:id="@+id/menu_refresh" android:icon="@drawable/ic_menu_refresh" android:showAsAction="always" android:title="@string/refresh" /&gt;
      &lt;item android:id="@+id/menu_search" android:title="@string/menu_search" android:icon="@android:drawable/ic_menu_search" android:showAsAction="never" /&gt;
      &lt;item android:id="@+id/settings" android:title="@string/settings" android:icon="@android:drawable/ic_menu_preferences"&gt;&lt;/item&gt;
      &lt;item android:id="@+id/exit" android:title="@string/exit" android:icon="@android:drawable/ic_menu_close_clear_cancel"&gt;&lt;/item&gt;   
          ...
  &lt;/menu&gt;
  </code></pre>
  
  <p>The problem is that, I start my activity in portrait for example and hit on the refresh button, it stops nicely. Now i rotate it and hit the refresh button again but now it keeps on showing the indeterminate progress for some reason. I checked, the refreshMenuItem.setActionView(null) is getting called but it still keeps on showing the indeterminate thingy. Also now the refreshMenuItem seems to be invisible for some reason, cause the onOptionsItemSelected is not getting called when i click on the indetermintate progress.</p>
  
  <p>so I tried with a different sample <a href="https://stackoverflow.com/questions/11440278/actionbarsherlock-menuitem-setactionviewnull-does-not-stop-rotating">app</a> and it works perfectly without any issues. So i am wondering where could i go wrong. any pointers will help.</p>