Example usage for android.app Fragment performPrepareOptionsMenu

List of usage examples for android.app Fragment performPrepareOptionsMenu

Introduction

In this page you can find the example usage for android.app Fragment performPrepareOptionsMenu.

Prototype

boolean performPrepareOptionsMenu(Menu menu) 

Source Link

Usage

From source file:android.app.FragmentManager.java

public boolean dispatchPrepareOptionsMenu(Menu menu) {
    boolean show = false;
    if (mAdded != null) {
        for (int i = 0; i < mAdded.size(); i++) {
            Fragment f = mAdded.get(i);
            if (f != null) {
                if (f.performPrepareOptionsMenu(menu)) {
                    show = true;//  w  w  w.  jav a2s .  c o m
                }
            }
        }
    }
    return show;
}