From 9ca5a2d90bc28ce322b72fc318c2e02cb0e6804d Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 22 Sep 2011 15:20:52 +0400 Subject: [PATCH] notify preference change listeners --- .../solovyev/android/view/prefs/AbstractDialogPreference.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java b/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java index bc079fdc..bdf441f8 100644 --- a/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java +++ b/src/main/java/org/solovyev/android/view/prefs/AbstractDialogPreference.java @@ -116,6 +116,7 @@ public abstract class AbstractDialogPreference 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 extends DialogPreference { final String toBePersistedString = getMapper().formatValue(value); if (toBePersistedString != null) { persistString(toBePersistedString); + callChangeListener(value); } }