api-impl-jni: fix CheckJNI error for View.onClick

This commit is contained in:
Mis012
2024-01-29 00:37:32 +01:00
parent bcd2617c9e
commit b40a76fcfb
3 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ static void on_click(GtkGestureClick *gesture, int n_press, double x, double y,
JNIEnv *env;
(*d->jvm)->GetEnv(d->jvm, (void**)&env, JNI_VERSION_1_6);
(*env)->CallBooleanMethod(env, d->on_touch_listener, _METHOD(d->on_touch_listener_class, "onClick", "(Landroid/view/View;)V"), d->this);
(*env)->CallVoidMethod(env, d->on_touch_listener, _METHOD(d->on_touch_listener_class, "onClick", "(Landroid/view/View;)V"), d->this);
if((*env)->ExceptionCheck(env))
(*env)->ExceptionDescribe(env);