Provide deprecated API to avoid build breakage
Restored onUtteranceRangeStart() temporarily as a deprecated API. Bug: 36646809 Test: N/A Change-Id: I7da927aca4f4ad1f5cc76564e8fdc4261849898b
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user