code: @Override
      protected void onSaveInstanceState(Bundle outState) {
          //add the values which need to be saved from the drawer to the bundle
          outState = result.saveInstanceState(outState);
          super.onSaveInstanceState(outState);
      }
docs: /*
  
  public static void setWindowFlag(Activity activity, final int bits, boolean on) {
  Window win = activity.getWindow();
  WindowManager.LayoutParams winParams = win.getAttributes();
  if (on) {
  winParams.flags |= bits;
  } else {
  winParams.flags &= ~bits;
  }
  win.setAttributes(winParams);
  }