code: private void obtainDecimals(@NonNull final TypedArray typedArray) {
          int defaultValue = getContext().getResources()
                  .getInteger(R.integer.seek_bar_preference_default_decimals);
          setDecimals(typedArray.getInteger(R.styleable.SeekBarPreference_decimals, defaultValue));
      }
docs: Obtains the number of decimals of the floating point numbers, the preference allows to
  choose, from a specific typed array.
  
  @param typedArray
  The typed array, the number of decimals should be obtained from, as an instance of
  the class {@link TypedArray}. The typed array may not be null