code: private void adaptButtonBarContainerVisibility() {
          if (buttonBarContainer != null) {
              if (TextUtils.isEmpty(positiveButtonText) && TextUtils.isEmpty(neutralButtonText) &&
                      TextUtils.isEmpty(negativeButtonText)) {
                  buttonBarContainer.setVisibility(View.GONE);
              } else {
                  buttonBarContainer.setVisibility(View.VISIBLE);
              }
          }
      }
docs: Adapts the visibility of the parent view, which contains the dialog's buttons.