tags:

views:

367

answers:

1

In my android application I have a PreferenceScreen parent that has 3 CheckBoxPreferences as children.

When I click the parent preferenceScreen, and the 3 checkboxes are displayed, I select one of them, and in the Preference.OnPreferenceChangeListener asociated with the checkboxes I set the parent's preferenceScreen summary with:

Parent.setSummary("string depending on the selection")

The thing is that when I return to the parent, it's summary is not updated, even if internally the value has correspondingly changed to the value setted.

Has anyone any idea regarding this behavior?

A: 

I discovered that it seems to work by following up setSummary() with getListView().invalidate().

Jonathan Taylor