OSDN Git Service

Disable TTS "Listen to the example" if not supported
authorPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Fri, 2 Aug 2013 16:06:41 +0000 (17:06 +0100)
committerPrzemyslaw Szczepaniak <pszczepaniak@google.com>
Mon, 5 Aug 2013 09:55:07 +0000 (10:55 +0100)
commit4c85c1d6f4e97f33e03a8f28f882d7a4110b8f88
tree64123ce16d0ff128b64a68581868760b3c9f6809
parent2500f7a3f5d7a313b8e47129bf8cc7cba3113cb7
Disable TTS "Listen to the example" if not supported

If current TTS locale (most of the cases same as device locale) is
not supported by the TTS engine, field for setting synthesis speed
and "Listen to the example" will be disabled.

Added new field, "Default language status" to indicate level of support
for currently selected language. It can take one of three messages:
%s is fully supported
%s requires network connection
%s is not supported
Where %s is locale display name.

Added example string that will provide a fallback for example text
if not provided by Settings or TTS engine.

Change-Id: Ia2a920a71197a85d3812fc8df9dfed4ebe6b515f
Bug: 9982002
res/values/strings.xml
res/xml/tts_settings.xml
src/com/android/settings/tts/TextToSpeechSettings.java