Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f14011af authored by Rakesh Iyer's avatar Rakesh Iyer
Browse files

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
parent e65e6c0d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1112,7 +1112,6 @@ public abstract class TextToSpeechService extends Service {

        @Override
        protected void playImpl() {
            dispatchOnStart();
            super.playImpl();
            try {
              mFileOutputStream.close();