From b047208b3b3391d5c9b0114b0906341240f48368 Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 12 Aug 2010 10:44:33 -0700 Subject: Cleanup on CL 61012 Change-Id: I394909c65a4978be26db063c9f69f1098ab028b3 --- policy/src/com/android/internal/policy/impl/PhoneWindow.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index 546c0f4..a410fa4 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -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(); -- cgit v1.1