code: private void adaptPadding() {
          ViewGroup dialogRootView = getRootView();
  
          if (dialogRootView != null) {
              dialogRootView.setPadding(getPaddingLeft(), getPaddingTop(), getPaddingRight(),
                      getPaddingBottom());
          }
      }
docs: Adapts the padding of the dialog.