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

Commit e86a936a authored by Przemyslaw Szczepaniak's avatar Przemyslaw Szczepaniak
Browse files

Document the case where TTS onInit callback is called in ctor.

Bug: 8743649
Change-Id: Ibf6002f93af9d19d809679852310561e69d57c1e
parent 8e1af517
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -561,7 +561,8 @@ public class TextToSpeech {
     *            The context this instance is running in.
     * @param listener
     *            The {@link TextToSpeech.OnInitListener} that will be called when the
     *            TextToSpeech engine has initialized.
     *            TextToSpeech engine has initialized. In a case of a failure the listener
     *            may be called immediately, before TextToSpeech instance is fully constructed.
     */
    public TextToSpeech(Context context, OnInitListener listener) {
        this(context, listener, null);
@@ -575,7 +576,8 @@ public class TextToSpeech {
     *            The context this instance is running in.
     * @param listener
     *            The {@link TextToSpeech.OnInitListener} that will be called when the
     *            TextToSpeech engine has initialized.
     *            TextToSpeech engine has initialized. In a case of a failure the listener
     *            may be called immediately, before TextToSpeech instance is fully constructed.
     * @param engine Package name of the TTS engine to use.
     */
    public TextToSpeech(Context context, OnInitListener listener, String engine) {