Skip to content

Commit 46045ef

Browse files
bgcngmmikeNG
authored andcommitted
Settings: Allow devices to provide remote gesture preferences
* Not all devices can use common gestures as implemented in LineageParts Change-Id: Iae4ca9fc686e3dc82411524688841211e0cceb7b
1 parent 9fcdde0 commit 46045ef

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

res/values/cm_strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<string name="status_bar_double_tap_to_sleep_title">Tap to sleep</string>
2828
<string name="status_bar_double_tap_to_sleep_summary">Double-tap on the status bar or lockscreen to turn off the display</string>
2929

30+
<!-- Touchscreen gesture settings -->
31+
<string name="touchscreen_gesture_settings_title">Touchscreen gestures</string>
32+
<string name="touchscreen_gesture_settings_summary">Perform various touchscreen gestures for quick actions</string>
33+
3034
<!-- Proximity wake -->
3135
<string name="proximity_wake_title">Prevent accidental wake-up</string>
3236
<string name="proximity_wake_summary">Check the proximity sensor prior to waking up screen</string>

res/xml/gestures.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@
2424
android:key="touchscreen_gesture_settings"
2525
lineage:requiresFeature="lineagehardware:FEATURE_TOUCHSCREEN_GESTURES" />
2626

27+
<lineageos.preference.RemotePreference
28+
android:key="device_touchscreen_gesture_settings"
29+
android:title="@string/touchscreen_gesture_settings_title"
30+
android:summary="@string/touchscreen_gesture_settings_summary"
31+
lineage:replacesKey="touchscreen_gesture_settings"
32+
lineage:requiresFeature="lineagehardware:FEATURE_TOUCHSCREEN_GESTURES">
33+
<intent android:action="org.lineageos.settings.device.GESTURE_SETTINGS" />
34+
</lineageos.preference.RemotePreference>
35+
2736
<Preference
2837
android:key="gesture_assist_input_summary"
2938
android:title="@string/assist_gesture_title"

0 commit comments

Comments
 (0)