From e91c37de784babbe879c78c83817b99d54b61d2f Mon Sep 17 00:00:00 2001 From: David Friedman Date: Thu, 30 Oct 2014 11:55:53 -0700 Subject: [PATCH] Fixes wrongly nested braces. Bug: 17499985 Change-Id: I6dc7abb14c06462a3eb9be3cb15d8baf11115323 --- docs/html/training/wearables/notifications/voice-input.jd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/html/training/wearables/notifications/voice-input.jd b/docs/html/training/wearables/notifications/voice-input.jd index 4a27826e56dc1..3ce1c8006d3f4 100644 --- a/docs/html/training/wearables/notifications/voice-input.jd +++ b/docs/html/training/wearables/notifications/voice-input.jd @@ -37,7 +37,7 @@ so you can type replies instead.

Define the Voice Input

-

To create an action that supports voice input, create an instance of +

To create an action that supports voice input, create an instance of {@link android.support.v4.app.RemoteInput.Builder} that you can add to your notification action. This class's constructor accepts a string that the system uses as the key for the voice input, which you'll later use to retrieve the text of the @@ -166,9 +166,8 @@ which is referenced by the EXTRA_VOICE_REPLY key that is used in th private CharSequence getMessageText(Intent intent) { Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); - if (remoteInput != null) { - return remoteInput.getCharSequence(EXTRA_VOICE_REPLY); - } + if (remoteInput != null) { + return remoteInput.getCharSequence(EXTRA_VOICE_REPLY); } return null; }