From 9f425ed7e1161dcdd75014b66f9bea4b5faf0b66 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 | 21 ++++++++++++++++++- 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 4588454..6684822 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -452,4 +452,17 @@ 8 9 + + + + @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 884b0e5..cbdc356 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -689,5 +689,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 058064d..77ba272 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" /> + +