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

Commit 2c4581e6 authored by Rakesh Iyer's avatar Rakesh Iyer Committed by Android (Google) Code Review
Browse files

Merge changes from topic "ob1"

* changes:
  Fix off by one error in getMaxSpeechInputLength().
  Stop synth when tts client dies.
parents 559530df 241c46cd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1009,7 +1009,7 @@ public abstract class TextToSpeechService extends Service {
                Log.e(TAG, "null synthesis text");
                return false;
            }
            if (mText.length() >= TextToSpeech.getMaxSpeechInputLength()) {
            if (mText.length() > TextToSpeech.getMaxSpeechInputLength()) {
                Log.w(TAG, "Text too long: " + mText.length() + " chars");
                return false;
            }
@@ -1609,7 +1609,7 @@ public abstract class TextToSpeechService extends Service {
            synchronized (mCallerToCallback) {
                mCallerToCallback.remove(caller);
            }
            //mSynthHandler.stopForApp(caller);
            mSynthHandler.stopForApp(caller);
        }

        @Override