From 748efcc3fb1b369690ab4617a04f452b1832edf4 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Wed, 8 Jul 2009 16:12:29 -0700 Subject: [PATCH] Adding a missing catch --- core/java/android/speech/tts/TextToSpeech.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index f90cbffb81e97..ed1e4ff639237 100644 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -606,6 +606,7 @@ public class TextToSpeech { result = mITts.setLanguage(mCachedParams[Engine.TTS_PARAM_POSITION_LANGUAGE + 1], mCachedParams[Engine.TTS_PARAM_POSITION_COUNTRY + 1], mCachedParams[Engine.TTS_PARAM_POSITION_VARIANT + 1] ); + } catch (RemoteException e) { // TTS died; restart it. mStarted = false; initTts();