public static interface Preference.OnPreferenceChangeListener
Preference
has been changed by the user and is
about to be set and/or persisted. This gives the client a chance
to prevent setting and/or persisting the value.Modifier and Type | Method and Description |
---|---|
boolean |
onPreferenceChange(Preference preference,
Object newValue)
Called when a Preference has been changed by the user.
|
boolean onPreferenceChange(Preference preference, Object newValue)
preference
- The changed Preference.newValue
- The new value of the Preference.