OmniGears: notification lights - support for devices without multi-color led
See also http://jira.omnirom.org/browse/UIREVIEW-4
For devices that dont have a multi-color led the color picker
dialog in notification lights makes not much sense
This creates an adapted dialog which supports a list of colors
that can be provided in the device overlay
To enable:
<bool name="config_has_multi_color_led" translatable="false">false</bool>
Default color list:
<string-array name="entries_led_colors" translatable="false">
<item>@string/led_color_green</item>
<item>@string/led_color_red</item>
</string-array>
<string-array name="values_led_colors" translatable="false">
<item>#FF00FF00</item>
<item>#FFFF0000</item>
</string-array>
PS2:
whitespace cleanup
PS3:
remove unneded separator line
Change-Id: I783cfcc42b1753148da31d521e09c134fab4311a
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index f49bc2e..0c2f4d5 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -96,6 +96,7 @@
<!-- Notification light dialogs -->
<string name="edit_light_settings">Edit light settings</string>
<string name="pulse_speed_title">Pulse length and speed</string>
+ <string name="color_list_title">Color</string>
<string name="default_time">Normal</string>
<string name="custom_time">Custom</string>
<string name="dialog_test">Test</string>
@@ -131,6 +132,9 @@
<string name="pulse_speed_slow">Slow</string>
<string name="pulse_speed_very_slow">Very slow</string>
+ <string name="led_color_green">Green</string>
+ <string name="led_color_red">Red</string>
+
<!-- Battery light settings -->
<string name="battery_light_title">Battery light</string>
<string name="battery_low_pulse_title">Pulse if battery low</string>