Settings: Add double tap to sleep preference
* Place it under Display settings, near the existing double tap to wake preference. Change-Id: I0baa49f9367331febf29260a0f60ba3a020be729
This commit is contained in:
committed by
Michael Bestas
parent
7a99c99e5f
commit
77692e85e7
@@ -36,6 +36,10 @@
|
||||
<!-- [CHAR LIMIT=NONE] Device Info screen. Okay we get it, stop pressing, you already have it on -->
|
||||
<string name="show_dev_already_cm">No need, you have already enabled development settings.</string>
|
||||
|
||||
<!-- Double tap to sleep on status bar or lockscreen -->
|
||||
<string name="status_bar_double_tap_to_sleep_title">Tap to sleep</string>
|
||||
<string name="status_bar_double_tap_to_sleep_summary">Double-tap on the status bar or lockscreen to turn off the display</string>
|
||||
|
||||
<!-- Lock screen pattern size -->
|
||||
<string name="lock_pattern_size_3" translatable="false">3 \u00d7 3</string>
|
||||
<string name="lock_pattern_size_4" translatable="false">4 \u00d7 4</string>
|
||||
|
||||
@@ -203,6 +203,14 @@
|
||||
android:title="@string/tap_to_wake"
|
||||
android:summary="@string/tap_to_wake_summary"/>
|
||||
|
||||
<!-- Double tap to sleep -->
|
||||
<lineageos.preference.LineageSystemSettingSwitchPreference
|
||||
android:key="double_tap_sleep_gesture"
|
||||
android:title="@string/status_bar_double_tap_to_sleep_title"
|
||||
android:summary="@string/status_bar_double_tap_to_sleep_summary"
|
||||
android:defaultValue="@*lineageos.platform:bool/config_dt2sGestureEnabledByDefault"
|
||||
settings:requiresConfig="@*lineageos.platform:bool/config_dt2sGestureAvailable" />
|
||||
|
||||
<ListPreference
|
||||
android:key="theme"
|
||||
android:title="@string/device_theme"
|
||||
|
||||
Reference in New Issue
Block a user