I have a PreferenceActivity where one of the preferences, a ListPreference, is assigned a listener for a user-selected change. In the listener's onPreferenceChange method, the user is presented with a dialog (showDialog) to confirm the change, and the onPreferenceChange returns false.
If the user responds OK in the presented dialog, some database work is done and then the preference is manually updated with the previously- selected value using a SharedPreferences.Editor. This all works fine, and I've confirmed that the preference is changed and visible from other activities. However, the PreferenceActivity itself doesn't reflect the change in the ListPreference value when the user selects it again. This is a problem. The change does show up as it should until the PreferenceActivity is exited and started again by the user. How do I get the PreferenceActivity to show the changed preference value in this case? It appears to be keeping a cache of previously retrieved preferences, not refreshing it when subsequently selected unless true is returned by onPreferenceChange. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

