diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index e2dc5d5ded81a..f52b5e30295b7 100644 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -1475,8 +1475,8 @@ public class TextToSpeech { Log.w(TAG, method + " failed: not connected to TTS engine"); return errorResult; } - if (onlyEstablishedConnection && isEstablished()) { - Log.w(TAG, method + " failed: TTS engine connection not fully setuped"); + if (onlyEstablishedConnection && !isEstablished()) { + Log.w(TAG, method + " failed: TTS engine connection not fully set up"); return errorResult; } return action.run(mService);