title: refreshing views of Preferences when using PreferenceActivity
body: <p>I'm trying to force <code>PreferenceActivity</code> to refresh. Does anyone know how to do this?</p>
  
  <p>I have a <code>ResetDefaultsPreference</code> class that subclasses <code>Preference</code> and, when clicked, is supposed to reset to defaults all preferences whose keys start with a certain prefix. It works, but when I hit the reset preference, none of the preferences in that screen update until I back out of the screen and go back in. (That works for some custom color preferences, but even that doesn't work for some <code>ListPreference</code>s - for those I have to leave and re-enter the <code>PreferenceActivity</code> itself for the updated values to be shown.)</p>
  
  <p>I tried to fix this by getting the root view and <code>invalidate()</code>ing it, but that doesn't seem to work. Here's the line to refresh the display. It's in part of a <code>Preference</code> subclass that keeps the <code>Context</code> it was created with in <code>mContext</code>.</p>
  
  <pre><code>((Activity)mContext).findViewById(android.R.id.content).invalidate();
  </code></pre>
  
  <p>This happens after the preference values have been changed and committed. (The values change, but the display doesn't.) Does anyone know how I can force PreferenceActivity to refresh itself?</p>