[2/2] OmniGears: only light up buttons if pressed
PS4: reorder button touch below timout since it depends on it
PS5: suboptions are checkboxes here so stay consistent
Change-Id: I0b2f8e7bace2d165f8aeed4f80eae2eee1ca30d9
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index 652737a..d0a3ffc 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -191,6 +191,8 @@
<string name="battery_enable_title">Show battery</string>
<string name="button_backlight_title">Button backlight</string>
+ <string name="button_backlight_on_touch_only_title">Button touch</string>
+ <string name="button_backlight_on_touch_only_summary">Enable backlight with timout only on button touch</string>
<string name="button_timeout_title">Backlight timeout</string>
<string name="button_timeout_summary">Disabled on value 0</string>
<string name="button_link_brightness">Link to screen</string>
diff --git a/res/xml/button_brightness_settings.xml b/res/xml/button_brightness_settings.xml
index 181c823..4ece1cc 100644
--- a/res/xml/button_brightness_settings.xml
+++ b/res/xml/button_brightness_settings.xml
@@ -45,5 +45,10 @@
settings:unitsRight="@string/unit_sec"
android:persistent="false"
android:dependency="button_backlight_enable" />
-
+ <org.omnirom.omnigears.preference.SystemCheckBoxPreference
+ android:key="button_backlight_on_touch_only"
+ android:title="@string/button_backlight_on_touch_only_title"
+ android:summary="@string/button_backlight_on_touch_only_summary"
+ android:defaultValue="false"
+ android:dependency="button_backlight_enable" />
</PreferenceScreen>