diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 4e8d3ca..79e3c31 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -371,7 +371,7 @@ Disable hardware buttons Use the device hardware keys for navigation Volume rocker - + default app @@ -440,4 +440,8 @@ Swap volume buttons when the screen is rotated Show volume panel on left Display volume panel on the left side of the screen + + + Alert slider notifications + Display notification when changing alert slider position diff --git a/res/xml/cherish_settings_notifications.xml b/res/xml/cherish_settings_notifications.xml index 665ed29..b34d6c3 100644 --- a/res/xml/cherish_settings_notifications.xml +++ b/res/xml/cherish_settings_notifications.xml @@ -52,6 +52,15 @@ android:title="@string/notification_sound_vib_screen_on_title" android:summary="@string/notification_sound_vib_screen_on_summary" android:defaultValue="true" /> + + + + + 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(ALERT_SLIDER_PREF); return keys; } };