title: onSharedPreferenceChanged edit stored value?
body: <p>If I have a onSharedPreferenceChanged event in my PreferenceActivity, that is checking if a CheckBoxPreference is checked or not and setting setEnabled on some other Preference, does the actual value of the other Preference get changed in the SharedPreferences, or do I have to manually set them?</p>
  
  <p>What I have is:</p>
  
  <pre><code> public void onSharedPreferenceChanged(Settings sharedPreferences, String key) 
   {
        CheckBoxPreference cbUpdatesEnabled = (CheckBoxPreference)getPreferenceScreen().findPreference("updatesenabled");
  
        CheckBoxPreference cbVibrate = (CheckBoxPreference)getPreferenceScreen().findPreference("vibrate");
  
        cbVibrate.setEnabled(cbUpdatesEnabled.isChecked());
   }
  </code></pre>
  
  <p>Which toggles whether the "vibrate" checkbox is enabled or disabled in the UI, but then do I also have to use:</p>
  
  <pre><code>SharedPreferences sharedPreferences = getPreferences(MODE_PRIVATE);
  SharedPreferences.Editor editor = sharedPreferences.edit();
  editor.putBoolean("vibrate", cbUpdatesEnabled.isChecked());
  editor.commit();
  </code></pre>
  
  <p>Or is there some other way of updating the SharedPreferences?  It doesn't look like the value is automatically saved just based on if it's enabled or not.</p>