Merge "Fix bug 4595971 - Menu not prepared to be prepared"

This commit is contained in:
Adam Powell
2011-06-23 11:38:10 -07:00
committed by Android (Google) Code Review

View File

@@ -711,9 +711,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
mActionBar.isOverflowReserved()) {
if (mActionBar.getVisibility() == View.VISIBLE) {
if (!mActionBar.isOverflowMenuShowing()) {
final Callback cb = getCallback();
if (cb != null && !isDestroyed() &&
cb.onPreparePanel(featureId, st.createdPanelView, st.menu)) {
if (!isDestroyed() && preparePanel(st, event)) {
playSoundEffect = mActionBar.showOverflowMenu();
}
} else {