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

This commit is contained in:
Amith Yamasani
2011-09-12 16:48:07 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 4 deletions

View File

@@ -15,9 +15,6 @@
-->
<resources>
<!-- Whether or not there is a notification led that is too intrusive to be pulsing
constantly -->
<bool name="has_intrusive_led">false</bool>
<!-- Whether or not the dock settings are to be displayed for this device when docked -->
<bool name="has_dock_settings">false</bool>
<!-- Whether there is a silent mode checkbox -->

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 {