code: private void adaptProgressBar() {
          LayoutInflater inflater = LayoutInflater.from(getContext());
          View view = inflater.inflate(getCustomMessageId(), getRootView(), false);
          getDialog().setCustomMessage(view);
          View progressView = view.findViewById(R.id.progress_bar);
          progressBar =
                  progressView instanceof CircularProgressBar ? (CircularProgressBar) progressView :
                          null;
          adaptProgressBarColor();
          adaptProgressBarSize();
          adaptProgressBarThickness();
          adaptMessageTextSize();
      }
docs: Adapts the dialog's progress bar.