Bug 968182 - Hide the Android menu before reshowing it with a submenu. r=lucasr

This commit is contained in:
Wes Johnston 2014-03-11 23:01:22 -07:00
parent 699c0a5afb
commit e4b83e36cc

View File

@ -370,9 +370,9 @@ public abstract class GeckoApp
@Override
public void showMenu(View menu) {
// Hide the menu only if we are showing the MenuPopup.
if (!HardwareUtils.hasMenuButton())
closeMenu();
// Hide the menu before we reshow it to avoid platform specific bugs like
// bug 794581 and bug 968182.
closeMenu();
mMenuPanel.removeAllViews();
mMenuPanel.addView(menu);