diff options
| author | David Friedman <dmail@google.com> | 2014-11-01 14:07:19 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-01 14:07:19 +0000 |
| commit | cc7917d0ee984fca49fe18b280a9f42947736fbd (patch) | |
| tree | 2e64d49145cb20859413a8cda38999a114d53fa4 | |
| parent | 22cbf54ca0c64344cd28590446a02e521ca914f7 (diff) | |
| parent | 62b532c7f4d7e6a868b8b007829dab9622ee5423 (diff) | |
| download | frameworks_base-cc7917d0ee984fca49fe18b280a9f42947736fbd.zip frameworks_base-cc7917d0ee984fca49fe18b280a9f42947736fbd.tar.gz frameworks_base-cc7917d0ee984fca49fe18b280a9f42947736fbd.tar.bz2 | |
am 62b532c7: am d2d8c553: am e91c37de: Fixes wrongly nested braces. Bug: 17499985
* commit '62b532c7f4d7e6a868b8b007829dab9622ee5423':
Fixes wrongly nested braces. Bug: 17499985
| -rw-r--r-- | docs/html/training/wearables/notifications/voice-input.jd | 7 |
1 files 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 4a27826..3ce1c80 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.</p> <h2 id="VoiceInput">Define the Voice Input</h2> -<p>To create an action that supports voice input, create an instance of +<p>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 <code>EXTRA_VOICE_REPLY</code> 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; } |
