If user added new voice pack, then set it as a default language, went level back and went to TTS settings again, it ended in crash. This is because first updateVoiceDetails uses old voice data details that settings retreived long time ago. locales preference is hidden until TTs engine returns list of locales. Change-Id: I33a81ff259c69adb4c051ee693b6c41b93f302d0
38 lines
1.4 KiB
XML
38 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2011 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="">
|
|
<ListPreference
|
|
android:key="tts_default_lang"
|
|
android:title="@string/tts_default_lang_title"
|
|
android:summary="@string/tts_default_lang_summary"
|
|
android:persistent="false"
|
|
android:order="100" />
|
|
|
|
<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_data_title"
|
|
android:summary="@string/tts_install_data_summary"
|
|
android:order="300" />
|
|
</PreferenceScreen>
|