Lines Matching refs:menu
273 public boolean onCreatePanelMenu(int featureId, Menu menu) {
275 boolean show = super.onCreatePanelMenu(featureId, menu);
276 show |= mFragments.dispatchCreateOptionsMenu(menu, getMenuInflater());
281 // menu, so we must always say we have one in case the app later
285 return super.onCreatePanelMenu(featureId, menu);
346 * Dispatch context and options menu to fragments.
370 public void onPanelClosed(int featureId, Menu menu) {
373 mFragments.dispatchOptionsMenuClosed(menu);
376 super.onPanelClosed(featureId, menu);
451 public boolean onPreparePanel(int featureId, View view, Menu menu) {
452 if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) {
455 menu.clear();
456 onCreatePanelMenu(featureId, menu);
458 boolean goforit = onPrepareOptionsPanel(view, menu);
459 goforit |= mFragments.dispatchPrepareOptionsMenu(menu);
462 return super.onPreparePanel(featureId, view, menu);
468 protected boolean onPrepareOptionsPanel(View view, Menu menu) {
469 return super.onPreparePanel(Window.FEATURE_OPTIONS_PANEL, view, menu);
618 * <p>Invalidate the activity's options menu. This will cause relevant presentations
619 * of the menu to fully update via calls to onCreateOptionsMenu and
620 * onPrepareOptionsMenu the next time the menu is requested.
625 // API to invalidate the options menu.
631 // the options menu the next time it is prepared.