diff options
author | San Mehat <san@google.com> | 2010-01-29 06:09:06 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-02-02 11:24:29 -0800 |
commit | 4a3d713f3aa1cb3b43343dd8af95ee858c8c6d8b (patch) | |
tree | 6e7d749346893729c05ae151356c560827d0dc81 /src/com/android/settings/SoundSettings.java | |
parent | 48090d4066fdf3084a4fb31277e785149c1bce37 (diff) | |
download | packages_apps_settings-4a3d713f3aa1cb3b43343dd8af95ee858c8c6d8b.zip packages_apps_settings-4a3d713f3aa1cb3b43343dd8af95ee858c8c6d8b.tar.gz packages_apps_settings-4a3d713f3aa1cb3b43343dd8af95ee858c8c6d8b.tar.bz2 |
Settings: Refactor for new API & remove obsolete setting
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'src/com/android/settings/SoundSettings.java')
-rw-r--r-- | src/com/android/settings/SoundSettings.java | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/settings/SoundSettings.java b/src/com/android/settings/SoundSettings.java index 9ac2fe1..fb78a80 100644 --- a/src/com/android/settings/SoundSettings.java +++ b/src/com/android/settings/SoundSettings.java @@ -53,16 +53,12 @@ public class SoundSettings extends PreferenceActivity implements private static final String KEY_DTMF_TONE = "dtmf_tone"; private static final String KEY_SOUND_EFFECTS = "sound_effects"; private static final String KEY_HAPTIC_FEEDBACK = "haptic_feedback"; - private static final String KEY_PLAY_MEDIA_NOTIFICATION_SOUNDS = - "play_media_notification_sounds"; private static final String KEY_EMERGENCY_TONE = "emergency_tone"; private static final String KEY_SOUND_SETTINGS = "sound_settings"; private static final String KEY_NOTIFICATION_PULSE = "notification_pulse"; private CheckBoxPreference mSilent; - private CheckBoxPreference mPlayMediaNotificationSounds; - private IMountService mMountService = null; /* @@ -109,7 +105,6 @@ public class SoundSettings extends PreferenceActivity implements } mSilent = (CheckBoxPreference) findPreference(KEY_SILENT); - mPlayMediaNotificationSounds = (CheckBoxPreference) findPreference(KEY_PLAY_MEDIA_NOTIFICATION_SOUNDS); mVibrate = (CheckBoxPreference) findPreference(KEY_VIBRATE); mDtmfTone = (CheckBoxPreference) findPreference(KEY_DTMF_TONE); @@ -177,11 +172,6 @@ public class SoundSettings extends PreferenceActivity implements mSilent.setChecked(silentOrVibrateMode); } - try { - mPlayMediaNotificationSounds.setChecked(mMountService.getPlayNotificationSounds()); - } catch (RemoteException e) { - } - boolean vibrateSetting; if (silentOrVibrateMode) { vibrateSetting = ringerMode == AudioManager.RINGER_MODE_VIBRATE; @@ -219,11 +209,6 @@ public class SoundSettings extends PreferenceActivity implements if (preference == mSilent || preference == mVibrate) { setRingerMode(mSilent.isChecked(), mVibrate.isChecked()); if (preference == mSilent) updateState(false); - } else if (preference == mPlayMediaNotificationSounds) { - try { - mMountService.setPlayNotificationSounds(mPlayMediaNotificationSounds.isChecked()); - } catch (RemoteException e) { - } } else if (preference == mDtmfTone) { Settings.System.putInt(getContentResolver(), Settings.System.DTMF_TONE_WHEN_DIALING, mDtmfTone.isChecked() ? 1 : 0); |