summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2015-05-22 17:36:39 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-05-22 17:36:40 +0000
commit843f1e0f94dc1a6af209d16b3a22e100925f44fb (patch)
treeb67e2b33235d282b67d499b66227fb6516a0e747
parent96616a57f3af05d4808fb5b84e758000f6ab5372 (diff)
parent89311c282abbbe647566ae4afbdb9c9851f0bec3 (diff)
Merge "sound trigger: fix wrong field type in JNI" into mnc-dev
-rw-r--r--core/jni/android_hardware_SoundTrigger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_hardware_SoundTrigger.cpp b/core/jni/android_hardware_SoundTrigger.cpp
index d0c56f67b8d5..1c4c9ecc8a09 100644
--- a/core/jni/android_hardware_SoundTrigger.cpp
+++ b/core/jni/android_hardware_SoundTrigger.cpp
@@ -711,7 +711,7 @@ android_hardware_SoundTrigger_startRecognition(JNIEnv *env, jobject thiz,
(struct sound_trigger_recognition_config *)memory->pointer();
config->data_size = dataSize;
config->data_offset = sizeof(struct sound_trigger_recognition_config);
- config->capture_requested = env->GetIntField(jConfig,
+ config->capture_requested = env->GetBooleanField(jConfig,
gRecognitionConfigFields.captureRequested);
config->num_phrases = 0;