private void obtainIconTintList ( @ StyleRes final int themeResourceId ) { TypedArray typedArray = getContext ( ) . getTheme ( ) . obtainStyledAttributes ( themeResourceId , new int [ ] { R . attr . materialDialogIconTint } ) ; setIconTintList ( typedArray . getColorStateList ( 0 ) ) ; }
Obtains the color state list which is used to tint the icon of the dialog from a specific theme .