Merge "Cleanup on CL 61012"

This commit is contained in:
Adam Powell
2010-08-12 15:08:29 -07:00
committed by Android (Google) Code Review

View File

@@ -647,10 +647,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
if (mActionBar.isOverflowReserved()) {
if (!mActionBar.isOverflowMenuShowing()) {
final Callback cb = getCallback();
if (cb != null) {
if (cb.onPreparePanel(featureId, st.createdPanelView, st.menu)) {
playSoundEffect = mActionBar.showOverflowMenu();
}
if (cb != null &&
cb.onPreparePanel(featureId, st.createdPanelView, st.menu)) {
playSoundEffect = mActionBar.showOverflowMenu();
}
} else {
playSoundEffect = mActionBar.hideOverflowMenu();