From fb3d2e57b3cd8bda484e308cedb3025e8579c53e Mon Sep 17 00:00:00 2001 From: ezio84 Date: Sat, 24 Sep 2022 11:37:44 +0700 Subject: [PATCH] Cherish: Allow doubletap/longpress power to toggle torch [2/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 13 ++++++++++++ res/values/cherish_strings.xml | 7 +++++++ res/xml/cherish_settings_lockscreen.xml | 6 ++++++ .../fragments/LockScreenSettings.java | 20 +++++++++++++++++++ 4 files changed, 46 insertions(+) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 756fe43..01e154e 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -249,4 +249,17 @@ 3 4 + + + + @string/torch_power_button_gesture_none + @string/torch_power_button_gesture_dt + @string/torch_power_button_gesture_lp + + + + 0 + 1 + 2 + diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 809d5bb..f90ee1d 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -520,5 +520,12 @@ Bluetooth battery status Display battery status for the connected bluetooth device, if available + + + Toggle torch when screen off + Disabled + Double tap power button (slower single tap response), Disables double power tap for camera. + Jump to camera gesture is now disabled + Long press power button diff --git a/res/xml/cherish_settings_lockscreen.xml b/res/xml/cherish_settings_lockscreen.xml index f016fbd..bf93c07 100644 --- a/res/xml/cherish_settings_lockscreen.xml +++ b/res/xml/cherish_settings_lockscreen.xml @@ -27,6 +27,12 @@ android:summary="@string/double_tap_sleep_lockscreen_summary" android:defaultValue="true" /> + +