code: 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));
      }
docs: 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