private void obtainColorFormat ( @ NonNull final TypedArray typedArray ) { int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . color_picker_preference_default_color_format ) ; setColorFormat ( ColorFormat . fromValue ( typedArray . getInteger ( R . styleable . AbstractColorPickerPreference_colorFormat , defaultValue ) ) ) ; }
Obtains the format which should be used to print a textual representation of the preference s color from a specific typed array .