diff options
author | Niels Egberts <nielse@google.com> | 2016-12-12 13:29:41 +0000 |
---|---|---|
committer | Niels Egberts <nielse@google.com> | 2017-01-25 18:30:06 +0000 |
commit | e5017dc6db81a7de0c4feb122842b3650fec8027 (patch) | |
tree | b2e99c236def704c3704d3952742be5a371230fa /res/xml/tts_settings.xml | |
parent | 42c61c10cc61d6bd52cd96290f6aaeb869a8321f (diff) | |
download | packages_apps_Settings-e5017dc6db81a7de0c4feb122842b3650fec8027.tar.gz packages_apps_Settings-e5017dc6db81a7de0c4feb122842b3650fec8027.tar.bz2 packages_apps_Settings-e5017dc6db81a7de0c4feb122842b3650fec8027.zip |
Move settings to their new location according to ux spec.
This change doesn't add or remove any functionality.
Additionally, make the settings searchable.
Test: mmma packages/apps/Settings + manual testing
Change-Id: Id3e24fd52b49b7373b4f247241cc52f61ffe169e
Diffstat (limited to 'res/xml/tts_settings.xml')
-rw-r--r-- | res/xml/tts_settings.xml | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/res/xml/tts_settings.xml b/res/xml/tts_settings.xml index 31d2b17e14..b02a749c46 100644 --- a/res/xml/tts_settings.xml +++ b/res/xml/tts_settings.xml @@ -17,38 +17,40 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/tts_settings_title"> - <!-- The contents of this category are filled in by the Java code - based on the list of available engines. --> - <PreferenceCategory android:key="tts_engine_preference_section" - android:title="@string/tts_engine_preference_section_title" /> + <PreferenceCategory android:key="tts_engine_section" + android:title="@string/tts_engine_section_title"> + + <com.android.settingslib.RestrictedPreference android:key="tts_engine_preference" + android:title="@string/tts_engine_preference_title" + android:fragment="com.android.settings.tts.TtsEnginePreferenceFragment"/> + + <Preference + android:key="tts_engine_settings" + android:persistent="false" + android:title="@string/tts_engine_settings_title" + android:order="200" /> + + <Preference + android:key="tts_install_data" + android:persistent="false" + android:title="@string/tts_install_voice_title" + android:order="300" /> + + </PreferenceCategory> <PreferenceCategory android:key="tts_general_section" android:title="@string/tts_general_section_title"> - <!-- The max value for seek bars here should be kept in sync - with the max value specified in TextToSpeechSettings class. --> - <com.android.settings.SeekBarPreference - android:key="tts_default_rate" - android:title="@string/tts_default_rate_title" - android:summary="@string/tts_default_rate_summary" - android:defaultValue="50" - android:max="600"/> - - <com.android.settings.SeekBarPreference - android:key="tts_default_pitch" - android:title="@string/tts_default_pitch_title" - android:summary="@string/tts_default_pitch_summary" - android:defaultValue="100" - android:max="400"/> - <Preference android:key="reset_speech_rate" - android:persistent="false" - android:title="@string/tts_reset_speech_rate_title" - android:summary="@string/tts_reset_speech_rate_summary" /> + <com.android.settingslib.RestrictedPreference + android:key="tts_sliders" + android:title="@string/tts_sliders_title" + android:fragment="com.android.settings.tts.TtsSlidersFragment"/> - <Preference android:key="reset_speech_pitch" - android:persistent="false" - android:title="@string/tts_reset_speech_pitch_title" - android:summary="@string/tts_reset_speech_pitch_summary" /> + <ListPreference + android:key="tts_default_lang" + android:title="@string/tts_default_lang_title" + android:summary="@string/tts_default_lang_summary" + android:persistent="false" /> <Preference android:key="tts_play_example" android:persistent="false" |