Sync PhoneWindow Menu Handling

We were previously using a much simpler version of handling
the menu instantiation in appcompat, but it looks like it has
some race conditions in it.

This CL syncs ActionBarActivityDelegateBase with the functions
from PhoneWindow + PanelFeatureState as much as possible.

Bug: 11370375

Change-Id: I565c2aed94ac4eabd2409b85b2dc68b7ccecf78d
1 file changed