fragment/src/main/java/androidx/fragment/app/FragmentActivity.java
@Override
    public boolean onPreparePanel(int featureId, View view, Menu menu) {
        if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) {
            boolean goforit = onPrepareOptionsPanel(view, menu);
            goforit |= mFragments.dispatchPrepareOptionsMenu(menu);
            return goforit;
        }
        return super.onPreparePanel(featureId, view, menu);
    }
/**
     * Dispatch onPrepareOptionsMenu() to fragments.
     */
Dispatch onPrepareOptionsMenu() to fragments.
Dispatch onPrepareOptionsMenu () to fragments .
@Override
    public boolean onPreparePanel(int featureId, View view, Menu menu) {
        if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) {
            boolean goforit = onPrepareOptionsPanel(view, menu);
            goforit |= mFragments.dispatchPrepareOptionsMenu(menu);
            return goforit;
        }
        return super.onPreparePanel(featureId, view, menu);
    }
@ Override public boolean onPreparePanel ( int featureId , View view , Menu menu ) { if ( featureId == Window . FEATURE_OPTIONS_PANEL && menu != null ) { boolean goforit = onPrepareOptionsPanel ( view , menu ) ; goforit |= mFragments . dispatchPrepareOptionsMenu ( menu ) ; return goforit ; } return super . onPreparePanel ( featureId , view , menu ) ; }
Dispatch onPrepareOptionsMenu() to fragments.
Dispatch onPrepareOptionsMenu () to fragments .