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

Commit 9ad9cf64 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Adding Text-To-Speech under Accessibility.

1. Adding text to speech (TTS) settings link under accessibility since
   the TTS settings are buried under language and input, therefore it is
   hard to find for a blind user. Note that TTS settings are some of the most
   important for a visually impaired user.

bug:5713535

Change-Id: I60aed1aeec5d40aa633dbac6e6149ad12366e9e6
parent 5cce0e6e
Loading
Loading
Loading
Loading
+11 −14
Original line number Diff line number Diff line
@@ -30,32 +30,27 @@
        <CheckBoxPreference
                android:key="toggle_large_text_preference"
                android:title="@string/accessibility_toggle_large_text_title"
                android:persistent="false"
                android:order="1"/>
                android:persistent="false"/>

        <CheckBoxPreference
                android:key="toggle_power_button_ends_call_preference"
                android:title="@string/accessibility_power_button_ends_call_title"
                android:persistent="false"
                android:order="2"/>
                android:persistent="false"/>

        <CheckBoxPreference
                android:key="toggle_auto_rotate_screen_preference"
                android:title="@string/accelerometer_title"
                android:persistent="false"
                android:order="3"/>
                android:persistent="false"/>

        <CheckBoxPreference
                android:key="toggle_speak_password_preference"
                android:title="@string/accessibility_speak_password_title"
                android:persistent="false"
                android:order="4"/>
                android:persistent="false"/>

        <PreferenceScreen
                android:key="toggle_touch_exploration_preference"
                android:title="@string/accessibility_touch_exploration_title"
                android:fragment="com.android.settings.AccessibilitySettings$ToggleTouchExplorationFragment"
                android:order="5" >
                android:fragment="com.android.settings.AccessibilitySettings$ToggleTouchExplorationFragment" >
                <extra android:name="title" android:value="@string/accessibility_touch_exploration_title" />
                <extra android:name="summary" android:value="@string/accessibility_touch_exploration_summary" />
                <extra android:name="enable_warning_title" android:value="@android:string/dialog_alert_title" />
@@ -64,12 +59,15 @@
                <extra android:name="settings_component_name" android:value="com.android.settings/com.android.settings.AccessibilityTutorialActivity" />
        </PreferenceScreen>

        <PreferenceScreen android:key="tts_settings"
                android:fragment="com.android.settings.tts.TextToSpeechSettings"
                android:title="@string/tts_settings_title" />

        <ListPreference android:key="select_long_press_timeout_preference"
                android:title="@string/accessibility_long_press_timeout_title"
                android:entries="@array/long_press_timeout_selector_titles"
                android:entryValues="@array/long_press_timeout_selector_values"
                android:persistent="false"
                android:order="6"/>
                android:persistent="false"/>

        <!-- We want a dialog with no title, so use an empty string to avoid a fall back to the preference title. -->
        <com.android.settings.AccessibilityEnableScriptInjectionPreference
@@ -80,8 +78,7 @@
                android:dialogMessage="@string/accessibility_script_injection_security_warning_summary"
                android:positiveButtonText="@string/accessibility_script_injection_button_allow"
                android:negativeButtonText="@string/accessibility_script_injection_button_disallow"
                android:persistent="false"
                android:order="7"/>
                android:persistent="false"/>

    </PreferenceCategory>