summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCharles Chen <clchen@google.com>2009-07-08 16:12:29 -0700
committerCharles Chen <clchen@google.com>2009-07-08 16:12:29 -0700
commit748efcc3fb1b369690ab4617a04f452b1832edf4 (patch)
treed446a416005e5bebd2a5927141acc2ce51e60d7f /core
parent7761920b2a2efc76d08c63d5be1b3ce829746e4b (diff)
downloadframeworks_base-748efcc3fb1b369690ab4617a04f452b1832edf4.zip
frameworks_base-748efcc3fb1b369690ab4617a04f452b1832edf4.tar.gz
frameworks_base-748efcc3fb1b369690ab4617a04f452b1832edf4.tar.bz2
Adding a missing catch
Diffstat (limited to 'core')
-rw-r--r--core/java/android/speech/tts/TextToSpeech.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java
index f90cbff..ed1e4ff 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();