private void updateChildPreferences(){
  if (mAlert.isChecked()) {
    mVibrate.setEnabled(true);
    mRingtone.setEnabled(true);
    mPopup.setEnabled(true);
  }
 else {
    mVibrate.setEnabled(false);
    mRingtone.setEnabled(false);
    mPopup.setEnabled(false);
  }
}

private void updateChildPreferences ( ) { if ( mAlert . isChecked ( ) ) { mVibrate . setEnabled ( true ) ; mRingtone . setEnabled ( true ) ; mPopup . setEnabled ( true ) ; } else { mVibrate . setEnabled ( false ) ; mRingtone . setEnabled ( false ) ; mPopup . setEnabled ( false ) ; } }
keeps the dependent settings in sync with the parent preference , so for example , when notifications are turned off , we disable the preferences for configuring the exact notification behavior .
