@Override
    public boolean onPrepareOptionsMenu(Menu menu) {

        if(layout.isDrawerOpen(drawer) && !deviceSupportMultiPane()) {
            menu.clear();
        }

        return super.onPrepareOptionsMenu(menu);
    }
@ Override public boolean onPrepareOptionsMenu ( Menu menu ) { if ( layout . isDrawerOpen ( drawer ) && ! deviceSupportMultiPane ( ) ) { menu . clear ( ) ; } return super . onPrepareOptionsMenu ( menu ) ; }
/* Chiamata dopo l'invalidateOptionsMenu()