public final void setColor ( @ ColorInt final int color ) { if ( this . color != color ) { this . color = color ; persistInt ( color ) ; notifyChanged ( ) ; adaptPreviewView ( ) ; } }
Sets the current color of the preference . By setting a value it will be persisted .