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