@Override public void onDestroy() { PreferenceGroup prefGroup = getPreferenceScreen(); for (int i = 0; i < prefGroup.getPreferenceCount(); i++) { Preference pref = prefGroup.getPreference(i); if (pref instanceof CheckBoxPreference) { CheckBoxPreference checkBoxPref = (CheckBoxPreference) pref; SettingsManager.setPreferenceBoolean(checkBoxPref.getKey(), checkBoxPref.isChecked()); } } super.onDestroy(); }
@Override public void onDestroy() { super.onDestroy(); }