diff options
author | Robert Ly <robertly@google.com> | 2014-07-21 16:27:57 -0700 |
---|---|---|
committer | Robert Ly <robertly@google.com> | 2014-07-22 14:25:10 +0000 |
commit | 61ecfc3428340dba72cb8b6043710fd495a32fd1 (patch) | |
tree | 73441d07da99efc66029ee516abc7c6e17072dfb /docs/html/training | |
parent | 5d59d371f27008214f29febb0595b602edddcc67 (diff) | |
download | frameworks_base-61ecfc3428340dba72cb8b6043710fd495a32fd1.zip frameworks_base-61ecfc3428340dba72cb8b6043710fd495a32fd1.tar.gz frameworks_base-61ecfc3428340dba72cb8b6043710fd495a32fd1.tar.bz2 |
docs: fix speech code for bug 16461337
Change-Id: Id2ab7852a7dbe9b91697e1ffd0ca1ba62144f875
Diffstat (limited to 'docs/html/training')
-rw-r--r-- | docs/html/training/wearables/apps/voice.jd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/training/wearables/apps/voice.jd b/docs/html/training/wearables/apps/voice.jd index 3dea5d7..639d90a 100644 --- a/docs/html/training/wearables/apps/voice.jd +++ b/docs/html/training/wearables/apps/voice.jd @@ -263,7 +263,7 @@ private void displaySpeechRecognizer() { @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { - if (requestCode == SPEECH_REQUEST && resultCode == RESULT_OK) { + if (requestCode == SPEECH_REQUEST_CODE && resultCode == RESULT_OK) { List<String> results = data.getStringArrayListExtra( RecognizerIntent.EXTRA_RESULTS); String spokenText = results.get(0); @@ -271,4 +271,4 @@ protected void onActivityResult(int requestCode, int resultCode, } super.onActivityResult(requestCode, resultCode, data); } -</pre>
\ No newline at end of file +</pre> |