File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
policy/src/com/android/internal/policy/impl Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -993,7 +993,11 @@ private void reopenMenu(boolean toggleMenuMode) {
993993 if (!mActionBar .isOverflowMenuShowing () || !toggleMenuMode ) {
994994 if (cb != null && !isDestroyed () && mActionBar .getVisibility () == View .VISIBLE ) {
995995 final PanelFeatureState st = getPanelState (FEATURE_OPTIONS_PANEL , true );
996- if (cb .onPreparePanel (FEATURE_OPTIONS_PANEL , st .createdPanelView , st .menu )) {
996+
997+ // If we don't have a menu or we're waiting for a full content refresh,
998+ // forget it. This is a lingering event that no longer matters.
999+ if (st .menu != null && !st .refreshMenuContent &&
1000+ cb .onPreparePanel (FEATURE_OPTIONS_PANEL , st .createdPanelView , st .menu )) {
9971001 cb .onMenuOpened (FEATURE_ACTION_BAR , st .menu );
9981002 mActionBar .showOverflowMenu ();
9991003 }
You can’t perform that action at this time.
0 commit comments