Fix logic error in Pszczepaniak's recent change.
Also improve wording of error message. Bug: 7666482 Change-Id: I2d2316b10fdf394bec8963327529723cbd5fbb32
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user