Merge "Provide deprecated API to avoid build breakage"

This commit is contained in:
TreeHugger Robot
2017-03-28 01:29:52 +00:00
committed by Android (Google) Code Review
4 changed files with 12 additions and 1 deletions

View File

@@ -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.