private void obtainDialogPreviewShape ( @ NonNull final TypedArray typedArray ) { int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . color_palette_preference_default_dialog_preview_shape ) ; setDialogPreviewShape ( PreviewShape . fromValue ( typedArray . getInteger ( R . styleable . ColorPalettePreference_dialogPreviewShape , defaultValue ) ) ) ; }
Obtains the shape which should be used to preview colors in the preference s dialog from a specific typed array .