Skip to content

Commit

Permalink
Settings: Add high touch sensitivity and touchscreen hovering toggles
Browse files Browse the repository at this point in the history
Change-Id: Ib8712d2d0c0fe4396dbea7c7fc130e0c253d3207
  • Loading branch information
luk1337 committed Mar 18, 2018
1 parent f1f43e6 commit 0bba50a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions res/values/cm_strings.xml
Expand Up @@ -351,4 +351,12 @@
<!-- Heads-up -->
<string name="heads_up_notifications_enabled_title">Heads-up</string>
<string name="heads_up_notifications_enabled_summary">Display priority notifications in a small floating window</string>

<!-- High touch sensitivity -->
<string name="high_touch_sensitivity_title">High touch sensitivity</string>
<string name="high_touch_sensitivity_summary">Increase touchscreen sensitivity so it can be used while wearing gloves</string>

<!-- Touchscreen hovering -->
<string name="touchscreen_hovering_title">Touchscreen hovering</string>
<string name="touchscreen_hovering_summary">Allows you to hover the screen like a mouse in web browsers, remote desktops, etc</string>
</resources>
7 changes: 7 additions & 0 deletions res/xml/display_settings.xml
Expand Up @@ -150,6 +150,13 @@
android:summary="@string/proximity_wake_summary"
lineage:requiresConfig="@*lineageos.platform:bool/config_proximityCheckOnWake" />

<lineageos.preference.LineageSystemSettingSwitchPreference
android:key="high_touch_sensitivity_enable"
android:title="@string/high_touch_sensitivity_title"
android:summary="@string/high_touch_sensitivity_summary"
android:defaultValue="false"
lineage:requiresFeature="lineagehardware:FEATURE_HIGH_TOUCH_SENSITIVITY" />

<!-- Use LineageParts for styles
<ListPreference
android:key="theme"
Expand Down
8 changes: 8 additions & 0 deletions res/xml/language_and_input.xml
Expand Up @@ -18,6 +18,7 @@
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
xmlns:lineage="http://schemas.android.com/apk/res/lineageos.platform"
android:title="@string/language_settings" >

<Preference
Expand Down Expand Up @@ -74,6 +75,13 @@
android:title="@string/tts_settings_title"
android:fragment="com.android.settings.tts.TextToSpeechSettings"/>

<lineageos.preference.LineageSecureSettingSwitchPreference
android:key="feature_touch_hovering"
android:title="@string/touchscreen_hovering_title"
android:summary="@string/touchscreen_hovering_summary"
android:defaultValue="false"
lineage:requiresFeature="lineagehardware:FEATURE_TOUCH_HOVERING" />

</PreferenceCategory>

<PreferenceCategory
Expand Down

0 comments on commit 0bba50a

Please sign in to comment.