From b4749e3e9161735c17aa7b2be7c5c230b89a5d24 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev 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); } }