code: private void obtainDialogButtonBarDividerColor(@NonNull final TypedArray typedArray) {
          int defaultValue = ContextCompat.getColor(getContext(), R.color.divider_color_light);
          setDialogDividerColor(
                  typedArray.getColor(R.styleable.DialogPreference_dialogDividerColor, defaultValue));
      }
docs: Obtains the color of the divider, which is located above the buttons of the dialog, which is
  shown by the preference, from a specific typed array.
  
  @param typedArray
  The typed array, the color should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null