am 1bb6ee4a: am 7ae22652: Merge "Fixes for API Review: android.speech.tts" into mnc-dev

* commit '1bb6ee4a938a6d8a032f0f8947ff9a44bea999cd':
  Fixes for API Review: android.speech.tts
This commit is contained in:
Przemyslaw Szczepaniak
2015-06-12 17:58:30 +00:00
committed by Android Git Automerger

View File

@@ -61,16 +61,16 @@ public abstract class UtteranceProgressListener {
/** /**
* Called when an utterance has been stopped while in progress or flushed from the * Called when an utterance has been stopped while in progress or flushed from the
* synthesis queue. This can happen if client calls {@link TextToSpeech#stop()} * synthesis queue. This can happen if a client calls {@link TextToSpeech#stop()}
* or use {@link TextToSpeech#QUEUE_FLUSH} as an argument in * or uses {@link TextToSpeech#QUEUE_FLUSH} as an argument with the
* {@link TextToSpeech#speak} or {@link TextToSpeech#synthesizeToFile} methods. * {@link TextToSpeech#speak} or {@link TextToSpeech#synthesizeToFile} methods.
* *
* @param utteranceId the utterance ID of the utterance. * @param utteranceId the utterance ID of the utterance.
* @param isStarted If true, then utterance was interrupted while being synthesized * @param interrupted If true, then the utterance was interrupted while being synthesized
* and it's output is incomplete. If it's false, then utterance was flushed * and its output is incomplete. If false, then the utterance was flushed
* before the synthesis started. * before the synthesis started.
*/ */
public void onStop(String utteranceId, boolean isStarted) { public void onStop(String utteranceId, boolean interrupted) {
} }
/** /**
@@ -99,7 +99,7 @@ public abstract class UtteranceProgressListener {
} }
@Override @Override
public void onStop(String utteranceId, boolean isStarted) { public void onStop(String utteranceId, boolean interrupted) {
listener.onUtteranceCompleted(utteranceId); listener.onUtteranceCompleted(utteranceId);
} }
}; };