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

Commit b4bfea5c authored by Riley Jones's avatar Riley Jones
Browse files

Expanded accessibility search terms

Items with new keywords:
-Accessibility
-Accessibility Menu
-Autoclick
-Live Caption
-Hearing Aids/Devices
-3-button navigation
-Touch & Hold
-Accessibility Timeout

Bug: 278091482
Test: Build SettingsGoogle, change your system language a few times, then check that the search bar responds to the new terms
Change-Id: Iddaf4f378b63f13141c1c52fbb4daa20f90a5ff8
parent 44662b0a
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -5024,7 +5024,7 @@
    <!-- List of synonyms used in the settings search bar to find the “Extra Dim” setting, which dims your screen. Title name is located at strings/reduce_bright_colors_preference_title. [CHAR LIMIT=NONE] -->
    <string name="keywords_reduce_bright_colors">light sensitivity, photophobia, dark theme, migraine, headache, reading mode, night mode, reduce brightness, white point</string>
    <!-- List of synonyms used in the settings search bar to find the “Accessibility”. [CHAR LIMIT=NONE] -->
    <string name="keywords_accessibility">Ease of use, ease of access, assistance, assistive</string>
    <string name="keywords_accessibility">vision, hearing, blind, deaf, motor, dexterity, assistive, assistance, ease of use, ease of access, hand, help</string>
    <!-- List of synonyms used in the settings search bar to find the “Magnification”. [CHAR LIMIT=NONE] -->
    <string name="keywords_magnification">Window Magnifier, Zoom, Magnification, Low vision, Enlarge, make bigger</string>
    <!-- List of synonyms used in the settings search bar to find the “TalkBack”. [CHAR LIMIT=NONE] -->
@@ -5054,13 +5054,19 @@
    <!-- List of synonyms used in the settings search bar to find the “Switch Access”. [CHAR LIMIT=NONE] -->
    <string name="keywords_switch_access"></string>
    <!-- List of synonyms used in the settings search bar to find the “Autoclick(dwell timing)”. [CHAR LIMIT=NONE] -->
    <string name="keywords_auto_click">motor, mouse</string>
    <string name="keywords_auto_click">motor, mouse, external mouse, head mouse, adaptive mouse, wheelchair, joystick</string>
    <!-- List of synonyms used in the settings search bar to find the “Hearing aids”. [CHAR LIMIT=NONE] -->
    <string name="keywords_hearing_aids">hearing aids, hard of hearing, hearing loss, cochlear implants, amplification devices, sound processors</string>
    <string name="keywords_hearing_aids">hearing aids, hard of hearing, hearing loss, cochlear implants, amplification devices, sound processors, PSAP</string>
    <!-- List of synonyms used in the settings search bar to find the “Real-time text (RTT)”. [CHAR LIMIT=NONE] -->
    <string name="keywords_rtt">hard of hearing, hearing loss, captions, Teletype, tty</string>
    <!-- List of synonyms used in the settings search bar to find the “Voice Access”. [CHAR LIMIT=NONE] -->
    <string name="keywords_voice_access"></string>
    <!-- List of synonyms used in the settings search bar to find the “3-button navigation”. [CHAR LIMIT=NONE] -->
    <string name="keywords_3_button_navigation">three buttons</string>
    <!-- List of synonyms used in the settings search bar to find the “Touch & hold delay”. [CHAR LIMIT=NONE] -->
    <string name="keywords_touch_and_hold_delay">dexterity, motor, senior, arthritis, rsi, stroke, tremor, multiple sclerosis, cerebral palsy, shaking, repetitive strain injury, hand</string>
    <!-- List of synonyms used in the settings search bar to find the “Time to take action (Accessibility timeout)”. [CHAR LIMIT=NONE] -->
    <string name="keywords_accessibility_timeout">delay, dexterity, senior</string>
    <skip />
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@
    xmlns:settings="http://schemas.android.com/apk/res-auto"
    android:key="accessibility_settings_screen"
    android:persistent="false"
    android:title="@string/accessibility_settings">
    android:title="@string/accessibility_settings"
    settings:keywords="@string/keywords_accessibility">

    <PreferenceCategory
        android:key="user_installed_services_category"
+4 −2
Original line number Diff line number Diff line
@@ -27,14 +27,16 @@
        android:summary="%s"
        android:persistent="false"
        android:title="@string/accessibility_long_press_timeout_preference_title"
        settings:controller="com.android.settings.accessibility.SelectLongPressTimeoutPreferenceController"/>
        settings:controller="com.android.settings.accessibility.SelectLongPressTimeoutPreferenceController"
        settings:keywords="@string/keywords_touch_and_hold_delay"/>

    <Preference
        android:fragment="com.android.settings.accessibility.AccessibilityControlTimeoutPreferenceFragment"
        android:key="accessibility_control_timeout_preference_fragment"
        android:persistent="false"
        android:title="@string/accessibility_setting_item_control_timeout_title"
        settings:controller="com.android.settings.accessibility.AccessibilityTimeoutPreferenceController"/>
        settings:controller="com.android.settings.accessibility.AccessibilityTimeoutPreferenceController"
        settings:keywords="@string/keywords_accessibility_timeout"/>

    <Preference
        android:fragment="com.android.settings.accessibility.ToggleAutoclickPreferenceFragment"
+1 −0
Original line number Diff line number Diff line
@@ -403,6 +403,7 @@ public class SystemNavigationGestureSettings extends RadioButtonPickerFragment i
                        SearchIndexableRaw data = new SearchIndexableRaw(context);
                        data.title = res.getString(R.string.legacy_navigation_title);
                        data.key = KEY_SYSTEM_NAV_3BUTTONS;
                        data.keywords = res.getString(R.string.keywords_3_button_navigation);
                        result.add(data);
                    }