More list menu fixes
Fix Menu not having it's callback set. Caused by a timing issue
in ToolbarActionBar's new list menu. If Toolbar.getMenu() is
called before Toolbar.setMenuCallbacks() then the menu
callback is never used. Fixed by making sure we set
the callbacks before getMenu() is called.
Also fixes the scenario where Toolbar does not return a panel
view (no action-items to display), resulting in the standard
'window' panels being checked. This previously meant that the
Toolbar's panel view is never used. We now never check the
'window' panels if there is a Toolbar list menu presenter
available.
BUG: 17049242
Change-Id: I355db4c782b38cd09f7def29224af849b74da0b7
2 files changed