From 2960d8c445e870a62373057cb977837cc20c1adb Mon Sep 17 00:00:00 2001 From: maxwen Date: Sat, 2 Dec 2017 18:26:40 -0500 Subject: [PATCH] Custom button light [2/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *DU Edits* - Adapt to our custom seekbar - Wrap preferences/seekbar with a category / update strings - Add check to remove preferences depending on bool (config_button_brightness_support) Change-Id: I90531723f8751a92766e96f5409d979a2f5bd524 Signed-off-by: SagarMakhar Signed-off-by: Hưng Phan --- res/values/cherish_strings.xml | 10 ++++ res/xml/cherish_settings_button.xml | 42 +++++++++++++++ .../settings/fragments/ButtonSettings.java | 54 ++++++++++++++++++- 3 files changed, 105 insertions(+), 1 deletion(-) diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 7180327..f6a02b1 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -586,4 +586,14 @@ Wi-Fi + + Backlight options + Allow button backlight + Link to screen brightness + Button backlight brightness will adjust based on current screen brightness level + Brightness level + Backlight timeout + Button backlight touch + Button backlight will only appear when buttons are pressed rather than on all the time. Timeout still impacts this feature. + diff --git a/res/xml/cherish_settings_button.xml b/res/xml/cherish_settings_button.xml index 428be19..904c889 100644 --- a/res/xml/cherish_settings_button.xml +++ b/res/xml/cherish_settings_button.xml @@ -39,6 +39,48 @@ android:title="@string/volume_steps_fragment_title" android:summary="@string/volume_steps_summary" android:fragment="com.cherish.settings.fragments.VolumeStepsFragment" /> + + + + + + + + + + + + + +