code: public final void setColor(@ColorInt final int color) {
          if (this.color != color) {
              this.color = color;
              persistInt(color);
              notifyChanged();
              adaptPreviewView();
          }
      }
docs: Sets the current color of the preference. By setting a value, it will be persisted.
  
  @param color
  The color, which should be set, as an {@link Integer} value