mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am a8cd7647: Merge "RegisterNatives() returns 0 on success."
* commit 'a8cd7647fe99e39a828f476d6685000c2afedb05': RegisterNatives() returns 0 on success.
This commit is contained in:
commit
582f30bdae
@ -67,7 +67,7 @@ int registerNativeMethods(JNIEnv *env, const char *const className, const JNINat
|
|||||||
AKLOGE("Native registration unable to find class '%s'", className);
|
AKLOGE("Native registration unable to find class '%s'", className);
|
||||||
return JNI_FALSE;
|
return JNI_FALSE;
|
||||||
}
|
}
|
||||||
if (env->RegisterNatives(clazz, methods, numMethods) < 0) {
|
if (env->RegisterNatives(clazz, methods, numMethods) != 0) {
|
||||||
AKLOGE("RegisterNatives failed for '%s'", className);
|
AKLOGE("RegisterNatives failed for '%s'", className);
|
||||||
env->DeleteLocalRef(clazz);
|
env->DeleteLocalRef(clazz);
|
||||||
return JNI_FALSE;
|
return JNI_FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user