From af4ed56b1460ddc90da8028c7b3171ed6836aa08 Mon Sep 17 00:00:00 2001 From: xyyx Date: Mon, 20 Aug 2018 16:33:58 +0800 Subject: [PATCH] ButtonBrightness: use switch for devices without variable button brightness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hưng Phan --- res/values/cherish_strings.xml | 2 ++ res/xml/cherish_settings_button.xml | 5 +++ .../settings/fragments/ButtonSettings.java | 32 ++++++++++++++++--- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 5077de4..544f633 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -177,4 +177,6 @@ Backlight + + Enable backlight diff --git a/res/xml/cherish_settings_button.xml b/res/xml/cherish_settings_button.xml index 8252330..1776f3e 100644 --- a/res/xml/cherish_settings_button.xml +++ b/res/xml/cherish_settings_button.xml @@ -43,6 +43,11 @@ settings:units="" android:persistent="false" /> + +