Settings: Allow devices to provide remote gesture preferences

* Not all devices can use common gestures as implemented in LineageParts

Change-Id: Iae4ca9fc686e3dc82411524688841211e0cceb7b
This commit is contained in:
Bruno Martins
2017-08-21 00:46:49 +01:00
committed by Michael Bestas
parent fe928c3843
commit 5df9be2540
2 changed files with 13 additions and 0 deletions

View File

@@ -55,4 +55,8 @@
<!-- Navigation bar hint -->
<string name="show_navbar_hint_title">Navigation hint</string>
<string name="show_navbar_hint_summary">Show navigation hint bar at the bottom of the screen</string>
<!-- Touchscreen gesture settings -->
<string name="touchscreen_gesture_settings_title">Touchscreen gestures</string>
<string name="touchscreen_gesture_settings_summary">Perform various touchscreen gestures for quick actions</string>
</resources>

View File

@@ -24,6 +24,15 @@
android:key="touchscreen_gesture_settings"
settings:requiresFeature="lineagehardware:FEATURE_TOUCHSCREEN_GESTURES" />
<lineageos.preference.RemotePreference
android:key="device_touchscreen_gesture_settings"
android:title="@string/touchscreen_gesture_settings_title"
android:summary="@string/touchscreen_gesture_settings_summary"
settings:replacesKey="touchscreen_gesture_settings"
settings:requiresFeature="lineagehardware:FEATURE_TOUCHSCREEN_GESTURES">
<intent android:action="org.lineageos.settings.device.GESTURE_SETTINGS" />
</lineageos.preference.RemotePreference>
<Preference
android:key="gesture_swipe_down_fingerprint_input_summary"
android:title="@string/fingerprint_swipe_for_notifications_title"