private void obtainHeaderIconTintList(@StyleRes final int themeResourceId) {
        TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                new int[]{R.attr.materialDialogHeaderIconTint});
        setHeaderIconTintList(typedArray.getColorStateList(0));
    }
private void obtainHeaderIconTintList ( @ StyleRes final int themeResourceId ) { TypedArray typedArray = getContext ( ) . getTheme ( ) . obtainStyledAttributes ( themeResourceId , new int [ ] { R . attr . materialDialogHeaderIconTint } ) ; setHeaderIconTintList ( typedArray . getColorStateList ( 0 ) ) ; }
Obtains the color state list, which is used to tint the header 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