Cherish: Allow doubletap/longpress power to toggle torch [2/2]

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
ezio84
2022-09-24 11:37:44 +07:00
committed by Hưng Phan
parent 4f1a57e28d
commit aa4ad58e36
4 changed files with 46 additions and 0 deletions

View File

@@ -249,4 +249,17 @@
<item>3</item>
<item>4</item>
</string-array>
<!-- Torch Power button gestures -->
<string-array name="torch_power_button_gesture_entries">
<item>@string/torch_power_button_gesture_none</item>
<item>@string/torch_power_button_gesture_dt</item>
<item>@string/torch_power_button_gesture_lp</item>
</string-array>
<string-array name="torch_power_button_gesture_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
</string-array>
</resources>

View File

@@ -542,5 +542,12 @@
<!-- Bluetooth status -->
<string name="bluetooth_battery_title">Bluetooth battery status</string>
<string name="bluetooth_battery_summary">Display battery status for the connected bluetooth device, if available</string>
<!-- Torch Power button gestures -->
<string name="torch_power_button_gesture_title">Toggle torch when screen off</string>
<string name="torch_power_button_gesture_none">Disabled</string>
<string name="torch_power_button_gesture_dt">Double tap power button (slower single tap response), Disables double power tap for camera.</string>
<string name="torch_power_button_gesture_dt_toast">Jump to camera gesture is now disabled</string>
<string name="torch_power_button_gesture_lp">Long press power button</string>
</resources>