Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5417096 authored by Bruno Martins's avatar Bruno Martins Committed by Michael Bestas
Browse files

Settings: Allow devices to provide remote gesture preferences

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

Change-Id: Iae4ca9fc686e3dc82411524688841211e0cceb7b
parent 59932364
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,4 +37,8 @@
    <!-- Proximity wake -->
    <string name="proximity_wake_title">Prevent accidental wake-up</string>
    <string name="proximity_wake_summary">Check the proximity sensor prior to waking up 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>
+9 −0
Original line number Diff line number Diff line
@@ -25,6 +25,15 @@
        android:key="touchscreen_gesture_settings"
        lineage: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"
            lineage:replacesKey="touchscreen_gesture_settings"
            lineage:requiresFeature="lineagehardware:FEATURE_TOUCHSCREEN_GESTURES">
        <intent android:action="org.lineageos.settings.device.GESTURE_SETTINGS" />
    </lineageos.preference.RemotePreference>

    <Preference
        android:key="gesture_assist_input_summary"
        android:title="@string/assist_gesture_title"