diff --git a/res/values/evolution_strings.xml b/res/values/evolution_strings.xml
index 85bf877..b728bc0 100644
--- a/res/values/evolution_strings.xml
+++ b/res/values/evolution_strings.xml
@@ -429,6 +429,10 @@
Alert while display on
Play sound and vibration for notifications while the display is on
+
+ Alert slider notifications
+ Display notification when changing alert slider position
+
Always trigger on pulse
Whether to show edge light whenever ambient display is shown and not just for notifications
diff --git a/res/xml/evolution_settings_notifications.xml b/res/xml/evolution_settings_notifications.xml
index ee8c5bc..c15f0af 100644
--- a/res/xml/evolution_settings_notifications.xml
+++ b/res/xml/evolution_settings_notifications.xml
@@ -32,6 +32,13 @@
android:key="notifications_interface_category"
android:title="@string/notifications_interface_category">
+
+
+
getNonIndexableKeys(Context context) {
- List keys = super.getNonIndexableKeys(context);
- final Resources resources = context.getResources();
- return keys;
- }
- };
+ @Override
+ public List getNonIndexableKeys(Context context) {
+ List keys = super.getNonIndexableKeys(context);
+ final Resources res = context.getResources();
+
+ boolean mAlertSliderAvailable = res.getBoolean(
+ com.android.internal.R.bool.config_hasAlertSlider);
+ if (!mAlertSliderAvailable)
+ keys.add(KEY_ALERT_SLIDER_PREF);
+
+ return keys;
+ }
+ };
}