notify preference change listeners

This commit is contained in:
serso 2011-09-22 15:20:52 +04:00
parent 8e60686d7b
commit 9ca5a2d90b

View File

@ -116,6 +116,7 @@ public abstract class AbstractDialogPreference<T> extends DialogPreference {
protected abstract void initPreferenceView();
@Nullable
private T getPersistedValue() {
String persistedString = getPersistedString(defaultStringValue);
if ( persistedString == defaultStringValue ) {
@ -137,6 +138,7 @@ public abstract class AbstractDialogPreference<T> extends DialogPreference {
final String toBePersistedString = getMapper().formatValue(value);
if (toBePersistedString != null) {
persistString(toBePersistedString);
callChangeListener(value);
}
}