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

Commit 53e100c4 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Provide deprecated API to avoid build breakage

Restored onUtteranceRangeStart() temporarily as a deprecated API.

Bug: 36646809
Test: N/A
Change-Id: I7da927aca4f4ad1f5cc76564e8fdc4261849898b
parent bfc4d59b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -37842,6 +37842,7 @@ package android.speech.tts {
    method public void onRangeStart(java.lang.String, int, int, int);
    method public abstract void onStart(java.lang.String);
    method public void onStop(java.lang.String, boolean);
    method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
  }
  public class Voice implements android.os.Parcelable {
+1 −0
Original line number Diff line number Diff line
@@ -40976,6 +40976,7 @@ package android.speech.tts {
    method public void onRangeStart(java.lang.String, int, int, int);
    method public abstract void onStart(java.lang.String);
    method public void onStop(java.lang.String, boolean);
    method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
  }
  public class Voice implements android.os.Parcelable {
+1 −0
Original line number Diff line number Diff line
@@ -38043,6 +38043,7 @@ package android.speech.tts {
    method public void onRangeStart(java.lang.String, int, int, int);
    method public abstract void onStart(java.lang.String);
    method public void onStop(java.lang.String, boolean);
    method public deprecated void onUtteranceRangeStart(java.lang.String, int, int);
  }
  public class Voice implements android.os.Parcelable {
+9 −1
Original line number Diff line number Diff line
@@ -137,7 +137,15 @@ public abstract class UtteranceProgressListener {
     * @param end The end index of the range (exclusive) in the utterance text.
     * @param frame The position in frames in the audio of the request where this range is spoken.
     */
    public void onRangeStart(String utteranceId, int start, int end, int frame) {}
    public void onRangeStart(String utteranceId, int start, int end, int frame) {
        onUtteranceRangeStart(utteranceId, start, end);
    }

    /**
     * @deprecated Due to internal API changes. Remove when apps catch up.
     */
    public void onUtteranceRangeStart(String utteranceId, int start, int end) {
    }

    /**
     * Wraps an old deprecated OnUtteranceCompletedListener with a shiny new progress listener.