diff options
| author | Rakesh Iyer <rni@google.com> | 2018-09-28 15:22:37 -0700 |
|---|---|---|
| committer | Rakesh Iyer <rni@google.com> | 2018-10-18 09:56:03 -0700 |
| commit | f14011af67fbffbd8341da6d9442ff82beaf2633 (patch) | |
| tree | 55744584b92635271e8d229795de4db5a6d6a231 /core/java | |
| parent | e65e6c0d7c157e89e56007f54ec9b36b5d6a55a0 (diff) | |
Remove extra call to dispatchStart().
Fixes a bug where UtteranceProgressListener.onStart is called twice
when calling TextToSpeech.synthesizeToFile().
Bug: 22262115
Test: Ran cts android.speech.tts.cts.TextToSpeechServiceTest
Change-Id: I7fa4cf824508e2880d0d74bab7a35f8678c38250
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/speech/tts/TextToSpeechService.java | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/speech/tts/TextToSpeechService.java b/core/java/android/speech/tts/TextToSpeechService.java index 10d7911316ac..ec63cd941b3f 100644 --- a/core/java/android/speech/tts/TextToSpeechService.java +++ b/core/java/android/speech/tts/TextToSpeechService.java @@ -1112,7 +1112,6 @@ public abstract class TextToSpeechService extends Service { @Override protected void playImpl() { - dispatchOnStart(); super.playImpl(); try { mFileOutputStream.close(); |
