From 7e79814aa33890a1d1b4abfdbdc11b5714112d16 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Tue, 18 Feb 2014 23:40:03 +0900 Subject: [PATCH] Fix wrong Java method call function bug: 13072808 Change-Id: I189fda85b59ce40e3657bfbbcc313e7e1225a0da --- native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp index cfdbb5bac..1e00cd825 100644 --- a/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp +++ b/native/jni/com_android_inputmethod_latin_BinaryDictionary.cpp @@ -162,13 +162,13 @@ static void latinime_BinaryDictionary_getHeaderInfo(JNIEnv *env, jclass clazz, j jintArray keyCodePointArray = env->NewIntArray(it->first.size()); env->SetIntArrayRegion( keyCodePointArray, 0 /* start */, it->first.size(), &it->first.at(0)); - env->CallVoidMethod(outAttributeKeys, addMethodId, keyCodePointArray); + env->CallBooleanMethod(outAttributeKeys, addMethodId, keyCodePointArray); env->DeleteLocalRef(keyCodePointArray); // Output value jintArray valueCodePointArray = env->NewIntArray(it->second.size()); env->SetIntArrayRegion( valueCodePointArray, 0 /* start */, it->second.size(), &it->second.at(0)); - env->CallVoidMethod(outAttributeValues, addMethodId, valueCodePointArray); + env->CallBooleanMethod(outAttributeValues, addMethodId, valueCodePointArray); env->DeleteLocalRef(valueCodePointArray); } env->DeleteLocalRef(arrayListClass);