code: private void adaptContentContainerVisibility() {
          if (contentContainer != null) {
              if (isCustomViewUsed()) {
                  contentContainer.setVisibility(View.VISIBLE);
                  notifyOnAreaShown(Area.CONTENT);
              } else {
                  contentContainer.setVisibility(View.GONE);
                  notifyOnAreaHidden(Area.CONTENT);
              }
          }
      }
docs: Adapts the visibility of the parent view of the view, which is used to show the dialog's
  content.