Skip to content

Commit 61ecfc3

Browse files
author
Robert Ly
committed
docs: fix speech code for bug 16461337
Change-Id: Id2ab7852a7dbe9b91697e1ffd0ca1ba62144f875
1 parent 5d59d37 commit 61ecfc3

File tree

1 file changed

+2
-2
lines changed
  • docs/html/training/wearables/apps

1 file changed

+2
-2
lines changed

docs/html/training/wearables/apps/voice.jd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ private void displaySpeechRecognizer() {
263263
@Override
264264
protected void onActivityResult(int requestCode, int resultCode,
265265
Intent data) {
266-
if (requestCode == SPEECH_REQUEST && resultCode == RESULT_OK) {
266+
if (requestCode == SPEECH_REQUEST_CODE && resultCode == RESULT_OK) {
267267
List<String> results = data.getStringArrayListExtra(
268268
RecognizerIntent.EXTRA_RESULTS);
269269
String spokenText = results.get(0);
270270
// Do something with spokenText
271271
}
272272
super.onActivityResult(requestCode, resultCode, data);
273273
}
274-
</pre>
274+
</pre>

0 commit comments

Comments
 (0)