summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Charles Chen <clchen@google.com> 2010-02-05 17:23:44 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-02-05 17:23:44 -0800
commit6004edc67c94a0d034dfb8981b7d4b7a0172a814 (patch)
tree88aa90094c4d6e6bce0e9f854425234934c898c0
parentf6a5c0999d79a52d2f8b4160a802e2aba08467cb (diff)
parentf5c87b386c839ccc9974bcb7f636aa2f8c14f78d (diff)
Merge "Fixing a bug with the TextToSpeech speech queue processing. The queue processor should not be called for the next item until synthesis has actually happened for the current item; before it was being incorrectly called regardless of whether or not the synthesizer had processed the current item."
-rwxr-xr-xpackages/TtsService/src/android/tts/TtsService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java
index 1efa5a3e5179..b7eea2e3d5bc 100755
--- a/packages/TtsService/src/android/tts/TtsService.java
+++ b/packages/TtsService/src/android/tts/TtsService.java
@@ -802,8 +802,8 @@ public class TtsService extends Service implements OnCompletionListener {
}
if (synthAvailable) {
synthesizerLock.unlock();
+ processSpeechQueue();
}
- processSpeechQueue();
}
}
}
@@ -882,8 +882,8 @@ public class TtsService extends Service implements OnCompletionListener {
}
if (synthAvailable) {
synthesizerLock.unlock();
+ processSpeechQueue();
}
- processSpeechQueue();
}
}
}