[2/2] OmniGears: battery styles: config low battery warning color usage
Change-Id: Ia3a82ac5169da7eb7cd88fc5ff73d4edc1a8f1d8
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index e591423..30ffa90 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -191,6 +191,8 @@
<string name="statusbar_battery_charging_color_enable_title">Color while charging</string>
<string name="statusbar_battery_charging_color_enable_summary"></string>
<string name="battery_enable_title">Show battery</string>
+ <string name="statusbar_battery_low_color_enable_title">Low battery color</string>
+ <string name="statusbar_battery_low_color_enable_summary">Enable different color if battery below 15%</string>
<string name="button_backlight_title">Button backlight</string>
<string name="button_backlight_summary">Configure enablement and brightness</string>
diff --git a/res/xml/statusbar_battery_settings.xml b/res/xml/statusbar_battery_settings.xml
index 103f10a..ac47c09 100644
--- a/res/xml/statusbar_battery_settings.xml
+++ b/res/xml/statusbar_battery_settings.xml
@@ -47,6 +47,12 @@
android:summary="@string/statusbar_battery_dotted_line_summary"
android:defaultValue="false"/>
+ <org.omnirom.omnigears.preference.SystemSettingSwitchPreference
+ android:key="statusbar_battery_low_color_enable"
+ android:title="@string/statusbar_battery_low_color_enable_title"
+ android:summary="@string/statusbar_battery_low_color_enable_summary"
+ android:defaultValue="true"/>
+
<PreferenceCategory
android:key="statusbar_category_charging"
android:title="@string/statusbar_category_charging_title">