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

Commit 1c2df382 authored by Fergus Henderson's avatar Fergus Henderson
Browse files

Fix logic error in Pszczepaniak's recent change.

Also improve wording of error message.

Bug: 7666482
Change-Id: I2d2316b10fdf394bec8963327529723cbd5fbb32
parent 526603b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);