title: Nested Fragments lose calls to onCreateOptionsMenu after screen rotation
body: <p>I implemented an Activity (<code>A</code>) that displays only one fragment (<code>PF</code>) with <code>getSupportFragmentManager()</code>.
  Fragment (<code>PF</code>) has one ViewPager to display 2 Fragments (<code>F1</code> and <code>F2</code>).
  ViewPager uses <code>FragmentPagerAdapter</code> with <code>getChildFragmentManager()</code>.</p>
  
  <p><a href="https://github.com/marsucsb/nested-fragments" rel="nofollow">Relative Code</a> (ViewPagerActivity)</p>
  
  <p><code>PF</code> has <code>setRetainInstance(true)</code> and I added <code>setHasOptionsMenu(true)</code> to PF, F1 and F2 because they have personalize optionmenus.</p>
  
  <p>Everything works fine. When I swype between <code>F1</code> and <code>F2</code> actionbar changes showing optionmenu 1 or optionmenu 2, but when screen rotation happens optionmenus in fragments 1 and 2 are no longer called after swype.</p>