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

@param typedArray
The typed array, the maximum value should be obtained from, as an instance of the
class {@link TypedArray}. The typed array may not be null