Skip to content

Commit f3be786

Browse files
Robert LyAndroid (Google) Code Review
authored andcommitted
Merge "docs: fix speech code for bug 16461337" into klp-modular-docs
2 parents 940ae93 + 61ecfc3 commit f3be786

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)