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:
@@ -15,9 +15,6 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<resources>
|
<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 -->
|
<!-- Whether or not the dock settings are to be displayed for this device when docked -->
|
||||||
<bool name="has_dock_settings">false</bool>
|
<bool name="has_dock_settings">false</bool>
|
||||||
<!-- Whether there is a silent mode checkbox -->
|
<!-- Whether there is a silent mode checkbox -->
|
||||||
|
@@ -191,7 +191,8 @@ public class SoundSettings extends SettingsPreferenceFragment implements
|
|||||||
mNotificationPulse = (CheckBoxPreference)
|
mNotificationPulse = (CheckBoxPreference)
|
||||||
mSoundSettings.findPreference(KEY_NOTIFICATION_PULSE);
|
mSoundSettings.findPreference(KEY_NOTIFICATION_PULSE);
|
||||||
if (mNotificationPulse != null
|
if (mNotificationPulse != null
|
||||||
&& getResources().getBoolean(R.bool.has_intrusive_led) == false) {
|
&& getResources().getBoolean(
|
||||||
|
com.android.internal.R.bool.config_intrusiveNotificationLed) == false) {
|
||||||
mSoundSettings.removePreference(mNotificationPulse);
|
mSoundSettings.removePreference(mNotificationPulse);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user