From d8d967e425c560c80baf63393699d05e1e4d37df Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 8 Apr 2016 09:57:01 -0700 Subject: [PATCH] Improved javadoc for onLocalVoiceInteractionStopped Improved docs per API review: b/27365473 Change-Id: I8e2fd5291ecf3c41b4c1fa4df62b0dc69597c122 --- core/java/android/app/Activity.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 0410a6e804cde..672a70618fab9 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -1343,20 +1343,21 @@ public class Activity extends ContextThemeWrapper * {@link #getVoiceInteractor()}. */ public void onLocalVoiceInteractionStarted() { - Log.i(TAG, "onLocalVoiceInteractionStarted! " + getVoiceInteractor()); } /** - * Callback to indicate that the local voice interaction has stopped for some - * reason. + * Callback to indicate that the local voice interaction has stopped either + * because it was requested through a call to {@link #stopLocalVoiceInteraction()} + * or because it was canceled by the user. The previously acquired {@link VoiceInteractor} + * is no longer valid after this. */ public void onLocalVoiceInteractionStopped() { - Log.i(TAG, "onLocalVoiceInteractionStopped :( " + getVoiceInteractor()); } /** * Request to terminate the current voice interaction that was previously started - * using {@link #startLocalVoiceInteraction(Bundle)}. + * using {@link #startLocalVoiceInteraction(Bundle)}. When the interaction is + * terminated, {@link #onLocalVoiceInteractionStopped()} will be called. */ public void stopLocalVoiceInteraction() { try {