diff options
author | Eric Laurent <elaurent@google.com> | 2015-05-22 10:30:13 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-05-22 10:30:13 -0700 |
commit | 89311c282abbbe647566ae4afbdb9c9851f0bec3 (patch) | |
tree | c045f5535ef57331a6deb3971112082ddaff04ee /core/jni/android_hardware_SoundTrigger.cpp | |
parent | c8304e86c86b1925d6f3e58a930d6a2ada6bb3a2 (diff) | |
download | frameworks_base-89311c282abbbe647566ae4afbdb9c9851f0bec3.zip frameworks_base-89311c282abbbe647566ae4afbdb9c9851f0bec3.tar.gz frameworks_base-89311c282abbbe647566ae4afbdb9c9851f0bec3.tar.bz2 |
sound trigger: fix wrong field type in JNI
Bug: 20951546.
Change-Id: I44f6dd05888e335a70bd212eb6f9c468a338ff92
Diffstat (limited to 'core/jni/android_hardware_SoundTrigger.cpp')
-rw-r--r-- | core/jni/android_hardware_SoundTrigger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_hardware_SoundTrigger.cpp b/core/jni/android_hardware_SoundTrigger.cpp index d0c56f6..1c4c9ec 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; |