Code example for Preference

Methods: setEnabled