code: protected void setModeView() {
          boolean nf = mode == MODE_NEW_FILE;
          mNewFileButtonContainer.setVisibility(nf ? View.VISIBLE : View.GONE);
          mRegularButtonContainer.setVisibility(nf ? View.GONE : View.VISIBLE);
  
          if (!nf && singleClick) {
              getActivity().findViewById(R.id.nnf_button_ok).setVisibility(View.GONE);
          }
      }
docs: Hides/Shows appropriate views depending on mode