Use a new config flag to decide if notification led pulsing can be turned on/off.

Bug: 5242350
Change-Id: I6119abcfca01db4b937098a1a92233ba63f9cb29
This commit is contained in:
Amith Yamasani
2011-09-12 14:11:56 -07:00
parent 31b562cede
commit 10826879a6
2 changed files with 2 additions and 4 deletions

View File

@@ -191,7 +191,8 @@ public class SoundSettings extends SettingsPreferenceFragment implements
mNotificationPulse = (CheckBoxPreference)
mSoundSettings.findPreference(KEY_NOTIFICATION_PULSE);
if (mNotificationPulse != null
&& getResources().getBoolean(R.bool.has_intrusive_led) == false) {
&& getResources().getBoolean(
com.android.internal.R.bool.config_intrusiveNotificationLed) == false) {
mSoundSettings.removePreference(mNotificationPulse);
} else {
try {