code: private void obtainIconTintList(@StyleRes final int themeResourceId) {
          TypedArray typedArray = getContext().getTheme()
                  .obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogIconTint});
          setIconTintList(typedArray.getColorStateList(0));
      }
docs: Obtains the color state list, which is used to tint the icon of the dialog, from a specific
  theme.
  
  @param themeResourceId
  The resource id of the theme, the color state list should be obtained from, as an
  {@link Integer} value