title: How to NOT call onCreateOptionsMenu when calling FragmentManager.replace()
body: <p>I have a <code>Toolbar</code> being used as an <code>ActionBar</code> with two items. I only want to ever display one at a time as they kind of replace each other. The problem is that when i replace a <code>Fragment</code>, it call <code>onCreateOptionsMenu</code> and will inflate the menu again, meaning that the same action button will be shown, even if the other one was previously in the <code>ActionBar</code>. I have to need to change anything in the <code>ActionBar</code> from my <code>Fragments</code> or when a new <code>Fragment</code> is displayed(with <code>FragmentManager.FragmentTransaction.replace()</code>). So my question is how do I not call <code>onCreateOptionsMenu</code> when a new fragment is displayed?</p>
  
  <p>I can't use a <code>boolean</code> because I will still need it to reinflate on orientation change. And any advice on how to handle orentation change for my situation?</p>
  
  <p>I can post code, but it seems more conceptual and I'm not sure that it would help.</p>