android/platform_frameworks_support — pull request #1 by lxyd (2013-09-07 21:15:11+00:00)
Title: Fix: menu re-creation was not changing mMenu in MenuView

Hi!

Found a bug not allowing me to use submenus in Fragment's options menu.

While adding a fragment having options menu via FragmentTransaction, MenuBuilder were correctly re-created but new instance of MenuBuilder were not passed to MenuView.
This caused Fragment's MenuItems reference an old MenuBuilder. This, in turn, caused submenu fail to show because no MenuPresenters were available to that old MenuBuilder.

NOTE: I'm not sure calling the 'initialize' method here is the best way to go. That might be better to modify MenuView interface to support something like 'setMenu'.