title: What happens when invalidateOptionsMenu() is called in Android?
body: <p>I am very keen to know what happens when an call to <code>invalidateOptionsMenu()</code> is made. Does it redraws the whole actionbar or just place a call to <code>onCreateOptionsMenu()</code> which follows with <code>onPrepareOptionsMenu()</code>. As per android source code it declare that the options menu has changed, so should be recreated. The <code>onCreateOptionsMenu(android.view.Menu)</code> method will be called the next time it needs to be displayed. I have certain points that needs clarification:</p>
  
  <ul>
  <li>Does it affects the ActionBar tabs in any way? </li>
  <li>Does it affects the    viewpager inside the layout of activity?</li>
  <li>Does it impacts the    fragments associated with actionbar tabs?</li>
  </ul>