title: ActionItem appears after orientation change
body: <p>I have faced quite weird problem I've been fighting with for several days. I have two fragments <code>A</code> and <code>B</code>. </p>
  
  <p>While <code>A</code> is visible I have <code>ActionItem</code> visible. Up on replacing fragment <code>A</code> with <code>B</code> I hide <code>ActionItem</code> which are filters for data in <code>onCreate()</code> (tried in <code>onConfigurationChanged()</code> too). And it DOES hide. But when the orientation changes to landscape this <code>ActionItem</code> is restored in action bar. </p>
  
  <p><strong>What could be the reason?</strong> </p>
  
  <p>Also interesting fact that <code>ActionItem</code> is being restored in <strong>standard</strong> java class called <code>Looper</code>. It "loops" there for several times and then restores <code>ActionItem</code>. </p>
  
  <hr>
  
  <p>Now the code. Thats how I create it in activity that stands for fragments navigation:</p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(final Menu menu) {
      getMenuInflater().inflate(R.menu.global_filters, menu);
      this.menu = menu;
      invalidateOptionsMenu();
      return super.onCreateOptionsMenu(this.menu);
  }
  </code></pre>
  
  <p>global_filters.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  tools:context=".NavigationActivity"&gt;
  
  &lt;item android:id="@+id/action_filters"
      android:title="Filters"
      android:icon="@drawable/ic_filter_white"
      android:orderInCategory="100"
      app:showAsAction="ifRoom" /&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>items for filters are added in <code>onOptionsItemSelected(MenuItem item)</code>:</p>
  
  <pre><code>@Override
  public boolean onOptionsItemSelected(MenuItem item) {
     int id = item.getItemId();
  
     switch (id) {
          case R.id.action_filters:
              menuItemView = findViewById(R.id.action_filters); // SAME ID AS MENU ID
              popupMenu = new PopupMenu(this, menuItemView);
              //if logined - show user. Else guest
              if (state) {
                  popupMenu.inflate(R.menu.popup_filters_user);
              } else {
                  popupMenu.inflate(R.menu.popup_filters_guest);
              }
  //....
  }
  </code></pre>
  
  <p>popup_filters_user.xml:</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/filter_purchased_user"
      android:title="Purchased"/&gt;
  &lt;item
      android:id="@+id/filter_price_user"
      android:title="Price"/&gt;
  &lt;item
      android:id="@+id/filter_author_user"
      android:title="Author"/&gt;
  &lt;item
      android:id="@+id/filter_difficulty_user"
      android:title="Difficulty"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>and finally how I hide <code>ActionItem</code> in Fragment's <code>B</code> <code>onCreate()</code>:</p>
  
  <pre><code>    @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      //....other logic
  
      //hide action Item
      View menuItemView = getActivity().findViewById(R.id.action_filters);
      if (menuItemView != null) {
          menuItemView.setVisibility(View.GONE);
      }
  }
  </code></pre>