private void obtainNumberOfDigits ( @ NonNull final TypedArray typedArray ) { int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . digit_picker_preference_default_number_of_digits ) ; setNumberOfDigits ( typedArray . getInteger ( R . styleable . DigitPickerPreference_numberOfDigits , defaultValue ) ) ; }
Obtains the number of digits of the numbers the preference allows to choose from a specific typed array .