From a2c12a61ded1bad366fa1c23ae69302573df400d Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 1 Oct 2012 13:39:24 -0700 Subject: Migrate telephony settings to Global. Bug: 7231764 Change-Id: Ic28dacda8372b7976b5aa36be82e98e5ad069f9a --- src/com/android/settings/SoundSettings.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/com') diff --git a/src/com/android/settings/SoundSettings.java b/src/com/android/settings/SoundSettings.java index 814ea46..3b02739 100644 --- a/src/com/android/settings/SoundSettings.java +++ b/src/com/android/settings/SoundSettings.java @@ -177,8 +177,8 @@ public class SoundSettings extends SettingsPreferenceFragment implements if (TelephonyManager.PHONE_TYPE_CDMA == activePhoneType) { ListPreference emergencyTonePreference = (ListPreference) findPreference(KEY_EMERGENCY_TONE); - emergencyTonePreference.setValue(String.valueOf(Settings.System.getInt( - resolver, Settings.System.EMERGENCY_TONE, FALLBACK_EMERGENCY_TONE_VALUE))); + emergencyTonePreference.setValue(String.valueOf(Settings.Global.getInt( + resolver, Settings.Global.EMERGENCY_TONE, FALLBACK_EMERGENCY_TONE_VALUE))); emergencyTonePreference.setOnPreferenceChangeListener(this); } @@ -323,8 +323,8 @@ public class SoundSettings extends SettingsPreferenceFragment implements if (KEY_EMERGENCY_TONE.equals(key)) { try { int value = Integer.parseInt((String) objValue); - Settings.System.putInt(getContentResolver(), - Settings.System.EMERGENCY_TONE, value); + Settings.Global.putInt(getContentResolver(), + Settings.Global.EMERGENCY_TONE, value); } catch (NumberFormatException e) { Log.e(TAG, "could not persist emergency tone setting", e); } -- cgit v1.1