diff options
author | Joe Onorato <joeo@google.com> | 2011-01-12 15:35:47 -0800 |
---|---|---|
committer | Joe Onorato <joeo@google.com> | 2011-01-12 15:35:47 -0800 |
commit | 057f181f3715e7340bf1618e86fdce118bbf952b (patch) | |
tree | 80b5a4fc5520e0eebde13de0246847b009d4820c /src | |
parent | eaf3d4c95dd442bf5b53db5a467afbd4456be6e4 (diff) | |
download | packages_apps_Settings-057f181f3715e7340bf1618e86fdce118bbf952b.zip packages_apps_Settings-057f181f3715e7340bf1618e86fdce118bbf952b.tar.gz packages_apps_Settings-057f181f3715e7340bf1618e86fdce118bbf952b.tar.bz2 |
Get rid of the silent mode pref on xlarge.
Bug: 3344695
Change-Id: I55ccfd2b22ca4aa407646de54a8dd1dfe637c9bd
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/SoundSettings.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/settings/SoundSettings.java b/src/com/android/settings/SoundSettings.java index cc38c23..23c7096 100644 --- a/src/com/android/settings/SoundSettings.java +++ b/src/com/android/settings/SoundSettings.java @@ -43,6 +43,7 @@ public class SoundSettings extends SettingsPreferenceFragment implements private static final String KEY_SILENT = "silent"; private static final String KEY_VIBRATE = "vibrate"; + private static final String KEY_RING_VOLUME = "ring_volume"; 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"; @@ -110,6 +111,10 @@ public class SoundSettings extends SettingsPreferenceFragment implements } mSilent = (CheckBoxPreference) findPreference(KEY_SILENT); + if (!getResources().getBoolean(R.bool.has_silent_mode)) { + getPreferenceScreen().removePreference(mSilent); + findPreference(KEY_RING_VOLUME).setDependency(null); + } mVibrate = (ListPreference) findPreference(KEY_VIBRATE); mVibrate.setOnPreferenceChangeListener(this); |