title: Cannot get rid of custom view in ActionBar until screen orientation change on fragments
body: <p>I am using Android's native ActionBar (not sherlock) for a project. I have 1 FragmentActivity and 3 fragments: 2 of those ListFragments and the other a Fragment. </p>
  
  <p>In my initial "homepage" fragment, I am setting a custom view (a spinner) in my app's ActionBar with this in my homepage fragment's onActivityCreated():</p>
  
  <pre><code>ActionBar actionBar = getActivity().getActionBar();
      actionBar.setCustomView(R.layout.homepage_spinner);
      Spinner spinner = (Spinner) actionBar.getCustomView().findViewById(R.id.homepage_selection_spinner);
      ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(getActivity(),
                                                                           R.array.homepage_selection_spinner_text,
                                                                           android.R.layout.simple_spinner_item);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinner.setAdapter(adapter);
      spinner.setSelection(mSpinnerListener.getCurrentPosition());
      spinner.setOnItemSelectedListener(mSpinnerListener);
  </code></pre>
  
  <p>Then in onStart():</p>
  
  <pre><code>getActivity().getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME);
  getActivity().getActionBar().setDisplayHomeAsUpEnabled(false);
  setHasOptionsMenu(true);
  </code></pre>
  
  <p>Everything in the homepage fragment works great. No problems at all. When I switch to my next fragment, I use this to try to get rid of the custom view (spinner) and display the up button, home, and the title of my app in onStart():</p>
  
  <pre><code>getActivity().getActionBar().setDisplayShowCustomEnabled(false);
  getActivity().getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_TITLE);
  setHasOptionsMenu(true);
  </code></pre>
  
  <p>When I go to this fragment initially, it shows home, up button, but not the title. Then when I go to the last fragment of the app, same exact result. BUT when I rotate phone on these fragments, then it shows the title just like I was hoping. I know this is happening because the Activity is being recreated so the actionbar's custom view is being erased when I rotate phone. I have confirmed this with tests running getActionBar().getCustomView(); and checked when it is null and not. </p>
  
  <p><strong>Notes:</strong><br>
  - my homepage fragment has setRetainInstance(true) in the onCreate().<br>
  - I have tried: getActionBar().setCustomView(null); with no luck<br>
  - tried getActionBar().setDisplayShowCustomEnabled(false);, setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE);, setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_CUSTOM, ActionBar.DISPLAY_SHOW_CUSTOM); all with same effect</p>