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

Commit 5decae39 authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak
Browse files

Remove "final" from TextToSpeechClient class.

It hinders attempts to mock the TextToSpeechClient
class in tests.

+ javadoc typo fix

Change-Id: I5b4590824d7e89b58451bdde457a627786333373
parent 2271a91c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24803,7 +24803,7 @@ package android.speech.tts {
    method public abstract void onUtteranceCompleted(java.lang.String);
  }
  public final class TextToSpeechClient {
  public class TextToSpeechClient {
    ctor public TextToSpeechClient(android.content.Context, java.lang.String, boolean, android.speech.tts.TextToSpeechClient.RequestCallbacks, android.speech.tts.TextToSpeechClient.ConnectionCallbacks);
    ctor public TextToSpeechClient(android.content.Context, android.speech.tts.TextToSpeechClient.RequestCallbacks, android.speech.tts.TextToSpeechClient.ConnectionCallbacks);
    method public void connect();
+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 * successful callback is the client usable.
 * <p>
 * After successful connection, the list of all available voices can be obtained
 * by calling the {@link TextToSpeechClient#getEngineStatus() method. The client can
 * by calling the {@link TextToSpeechClient#getEngineStatus()} method. The client can
 * choose a voice using some custom heuristic and build a {@link RequestConfig} object
 * using {@link RequestConfig.Builder}, or can use one of the common heuristics found
 * in ({@link RequestConfigHelper}.
@@ -69,7 +69,7 @@ import java.util.concurrent.atomic.AtomicInteger;
 * {@link ConnectionCallbacks#onEngineStatusChange} with new set of available voices as argument.
 * In response, the client HAVE to recreate all {@link RequestConfig} instances in use.
 */
public final class TextToSpeechClient {
public class TextToSpeechClient {
    private static final String TAG = TextToSpeechClient.class.getSimpleName();

    private final Object mLock = new Object();