/** * 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. */ 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 shouldDisplayRingerPrefs() { mBypassRingtone.setEnabled(mSmsBypassPref != 0 || mCallBypassPref != 0); mRingtoneLoop.setEnabled(mSmsBypassPref != 0 || mCallBypassPref != 0); }