code: private void obtainDialogButtonTextColor(@NonNull final TypedArray typedArray) {
          ColorStateList colorStateList =
                  typedArray.getColorStateList(R.styleable.DialogPreference_dialogButtonTextColor);
  
          if (colorStateList != null) {
              setDialogButtonTextColor(colorStateList);
          }
      }
docs: Obtains the button text color 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