private void obtainMaxNumber ( @ NonNull final TypedArray typedArray ) { int defaultValue = getContext ( ) . getResources ( ) . getInteger ( R . integer . number_picker_preference_default_max_number ) ; setMaxNumber ( typedArray . getInteger ( R . styleable . AbstractNumericPreference_android_max , defaultValue ) ) ; }
Obtains the maximum number the preference allows to choose from a specific typed array .