Merge "Fix top level menu lingering when submenu opens." into nyc-dev

am: 7ce082a

* commit '7ce082a46259e948e4ea6a12f327f32aecaf167a':
  Fix top level menu lingering when submenu opens.

Change-Id: I994fe5fa29f9b10c0d7a8e4dd306fe2e4f35df7e
This commit is contained in:
Oren Blasberg
2016-04-07 22:50:43 +00:00
committed by android-build-merger

View File

@@ -208,7 +208,7 @@ final class StandardMenuPopup extends MenuPopup implements OnDismissListener, On
@Override
public void show() {
if (!tryShow()) {
throw new IllegalStateException("MenuPopupHelper cannot be used without an anchor");
throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor");
}
}
@@ -273,7 +273,7 @@ final class StandardMenuPopup extends MenuPopup implements OnDismissListener, On
mOnDismissListener = null;
// Close this menu popup to make room for the submenu popup.
dismiss();
mMenu.close(false /* closeAllMenus */);
// Show the new sub-menu popup at the same location as this popup.
if (subPopup.tryShow(mXOffset, mYOffset)) {