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

Commit 8dec0272 authored by Zhao Wei Liew's avatar Zhao Wei Liew Committed by Steve Kondik
Browse files

Settings: Add toggles for several CM additions

Under 'Display':
 - Proximity check on wake
 - High touch sensitivity

Under 'Languages and input':
 - Touchscreen hovering
 - IME selector notification
 - Hardware keyboard options that AOSP removed

Under 'Security':
 - Lock screen blur

Under 'Developer options':
 - Long press to kill app

Change-Id: Ie83622a5e61a24dfa7adb75ed26c7558cec7b23b
parent 20af3c28
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -286,4 +286,31 @@
    <!-- title for lock screen weather preference -->
    <string name="lockscreen_weather_enabled_title">Show weather</string>

    <!-- title for lock screen blur preference -->
    <string name="lockscreen_blur_enabled_title">Blur lock screen</string>

    <!-- 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>

    <!-- 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>

    <!-- Whether to display IME switcher notifcation -->
    <string name="ime_switcher_notify">Selector notification</string>
    <string name="ime_switcher_notify_summary">Display input method selector notification</string>

    <!-- Stylus Icon -->
    <string name="stylus_icon_enabled_title">Show icon when using stylus</string>
    <string name="stylus_icon_enabled_summary">Show the pointer icon when hovering or drawing with the stylus</string>

    <!-- Kill app long-press back -->
    <string name="kill_app_longpress_back">Kill app back button</string>
    <string name="kill_app_longpress_back_summary">Kill the foreground app by long-pressing the back button</string>

</resources>
+5 −0
Original line number Diff line number Diff line
@@ -399,6 +399,11 @@
            android:key="force_resizable_activities"
            android:title="@string/force_resizable_activities"
            android:summary="@string/force_resizable_activities_summary"/>

        <cyanogenmod.preference.CMSecureSettingSwitchPreference
            android:key="kill_app_longpress_back"
            android:title="@string/kill_app_longpress_back"
            android:summary="@string/kill_app_longpress_back_summary"/>
     </PreferenceCategory>

</PreferenceScreen>
+14 −0
Original line number Diff line number Diff line
@@ -94,6 +94,20 @@
                android:title="@string/tap_to_wake"
                android:summary="@string/tap_to_wake_summary" />

        <!-- Prevent accidental wake-up -->
        <cyanogenmod.preference.CMSystemSettingSwitchPreference
                android:key="proximity_on_wake"
                android:title="@string/proximity_wake_title"
                android:summary="@string/proximity_wake_summary"
                cm:requiresConfig="@*cyanogenmod.platform:bool/config_proximityCheckOnWake" />

        <cyanogenmod.preference.CMSystemSettingSwitchPreference
                android:key="high_touch_sensitivity_enable"
                android:title="@string/high_touch_sensitivity_title"
                android:summary="@string/high_touch_sensitivity_summary"
                android:defaultValue="false"
                cm:requiresFeature="cmhardware:FEATURE_HIGH_TOUCH_SENSITIVITY" />

        <PreferenceScreen
                android:key="font_size"
                android:title="@string/title_font_size"
+21 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
                  xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
                  xmlns:cm="http://schemas.android.com/apk/res/cyanogenmod.platform"
        android:key="language_keyboard_settings"
        android:title="@string/language_keyboard_settings_title">

@@ -48,6 +49,12 @@
        <PreferenceScreen
            android:title="@string/physical_keyboard_title"
            android:fragment="com.android.settings.inputmethod.PhysicalKeyboardFragment" />

        <cyanogenmod.preference.CMSystemSettingSwitchPreference
                android:key="status_bar_ime_switcher"
                android:title="@string/ime_switcher_notify"
                android:summary="@string/ime_switcher_notify_summary"
                android:defaultValue="true" />
    </PreferenceCategory>

    <!-- Temporarily disabled: -->
@@ -92,6 +99,20 @@
                android:dialogTitle="@string/pointer_speed"
                />

        <cyanogenmod.preference.CMSystemSettingSwitchPreference
                android:key="stylus_icon_enabled"
                android:title="@string/stylus_icon_enabled_title"
                android:summary="@string/stylus_icon_enabled_summary"
                android:defaultValue="false"
                android:persistent="false" />

        <cyanogenmod.preference.CMSecureSettingSwitchPreference
                android:key="feature_touch_hovering"
                android:title="@string/touchscreen_hovering_title"
                android:summary="@string/touchscreen_hovering_summary"
                android:defaultValue="false"
                cm:requiresFeature="cmhardware:FEATURE_TOUCH_HOVERING" />

    </PreferenceCategory>

    <PreferenceCategory
+21 −0
Original line number Diff line number Diff line
@@ -30,5 +30,26 @@
            android:key="keyboard_shortcuts_helper"
            android:title="@string/keyboard_shortcuts_helper"
            android:summary="@string/keyboard_shortcuts_helper_summary" />

        <cyanogenmod.preference.SystemSettingSwitchPreference
                android:key="auto_replace"
                android:title="@string/auto_replace"
                android:summaryOn="@string/auto_replace_summary"
                android:summaryOff="@string/auto_replace_summary"
                android:persistent="false" />

        <cyanogenmod.preference.SystemSettingSwitchPreference
                android:key="auto_caps"
                android:title="@string/auto_caps"
                android:summaryOn="@string/auto_caps_summary"
                android:summaryOff="@string/auto_caps_summary"
                android:persistent="false" />

        <cyanogenmod.preference.SystemSettingSwitchPreference
                android:key="auto_punctuate"
                android:title="@string/auto_punctuate"
                android:summaryOn="@string/auto_punctuate_summary"
                android:summaryOff="@string/auto_punctuate_summary"
                android:persistent="false" />
    </PreferenceCategory>
</PreferenceScreen>
Loading