diff options
author | AdrianDC <radian.dc@gmail.com> | 2015-08-18 19:18:49 +0200 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-11-16 11:51:53 -0800 |
commit | e0eac298ca46ee5fef7dca5d6d126c8cb4b5ac42 (patch) | |
tree | bdfc3e472652c5247c7ec669960b31d99a9e5e82 /res | |
parent | 0fdd542dd7857ed5e996d2176cd801763ae7605f (diff) | |
download | packages_apps_Settings-e0eac298ca46ee5fef7dca5d6d126c8cb4b5ac42.zip packages_apps_Settings-e0eac298ca46ee5fef7dca5d6d126c8cb4b5ac42.tar.gz packages_apps_Settings-e0eac298ca46ee5fef7dca5d6d126c8cb4b5ac42.tar.bz2 |
LEDs Brightness [1/2]: Lights notifications brightness support
Implement the support of an overall brightness control for the LEDs.
The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.
Changes includes :
frameworks/base
packages/apps/Settings
Change-Id: I6ff14ee0de8200f211302a868c5b43e3ec6f9f3a
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/values/cm_strings.xml | 2 | ||||
-rw-r--r-- | res/xml/notification_light_settings.xml | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 97abadd..8d0335f 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -309,7 +309,9 @@ <string name="notification_light_default_value">Default</string> <string name="notification_light_missed_call_title">Missed call</string> <string name="notification_light_voicemail_title">Voicemail</string> + <string name="notification_light_brightness" translatable="false">@string/brightness</string> <string name="notification_light_screen_on">Lights with screen on</string> + <string name="keywords_lights_brightness_level">dim leds brightness</string> <!-- Lights settings, LED notification --> <string name="led_notification_title">Light settings</string> diff --git a/res/xml/notification_light_settings.xml b/res/xml/notification_light_settings.xml index 7c44da7..4737097 100644 --- a/res/xml/notification_light_settings.xml +++ b/res/xml/notification_light_settings.xml @@ -37,6 +37,14 @@ android:key="advanced_section" android:title="@string/notification_light_advanced_title"> + <PreferenceScreen + android:key="notification_light_brightness_level" + android:title="@string/notification_light_brightness" + android:dependency="notification_light_pulse" + settings:keywords="@string/keywords_lights_brightness_level"> + <intent android:action="android.intent.action.SHOW_NOTIFICATION_BRIGHTNESS_DIALOG" /> + </PreferenceScreen> + <com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference android:key="notification_light_screen_on_enable" android:title="@string/notification_light_screen_on" |