Fix for 2579445 - Using the correct strings for accessing Intent extras now.

Change-Id: I8a0b8f3add637ffffed4119b976c800ab3251b72
This commit is contained in:
Charles Chen
2010-04-07 17:41:07 -07:00
parent 263b7704bc
commit 510bc4a2c3

View File

@@ -368,11 +368,10 @@ public class TextToSpeechSettings extends PreferenceActivity implements
updateWidgetState();
return;
}
// TODO (clchen): Add these extras to TextToSpeech.Engine
ArrayList<String> available =
data.getStringArrayListExtra("TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES");
data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_AVAILABLE_VOICES);
ArrayList<String> unavailable =
data.getStringArrayListExtra("TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES");
data.getStringArrayListExtra(TextToSpeech.Engine.EXTRA_UNAVAILABLE_VOICES);
if ((available == null) || (unavailable == null)){
// The CHECK_TTS_DATA activity for the plugin did not run properly;
// disable the preview and install controls and return.