private void obtainFitsSystemWindows ( @ StyleRes final int themeResourceId ) { TypedArray typedArray = getContext ( ) . getTheme ( ) . obtainStyledAttributes ( themeResourceId , new int [ ] { R . attr . materialDialogFitsSystemWindowsLeft , R . attr . materialDialogFitsSystemWindowsTop , R . attr . materialDialogFitsSystemWindowsRight , R . attr . materialDialogFitsSystemWindowsBottom } ) ; boolean left = typedArray . getBoolean ( 0 , true ) ; boolean top = typedArray . getBoolean ( 1 , true ) ; boolean right = typedArray . getBoolean ( 2 , true ) ; boolean bottom = typedArray . getBoolean ( 3 , true ) ; setFitsSystemWindows ( left , top , right , bottom ) ; }
Obtains whether the dialog s content should be inset from a specific theme .