Przeglądaj źródła

fix android startup crash because of the FindClass typo (#108)

Dan Korostelev 7 lat temu
rodzic
commit
7d4a37632e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/std/sys_android.c

+ 1 - 1
src/std/sys_android.c

@@ -101,7 +101,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
 	env = hl_android_jni_get_env();
 
 	/* Try to retrieve local reference to our Activity class */
-	cls = (*env)->FindClass(env, hl_java_activity_class);
+	cls = (*env)->FindClass(env, HL_ANDROID_ACTIVITY);
 	if (!cls) {
 		__android_log_print(ANDROID_LOG_ERROR, HL_JNI_LOG_TAG, "Error cannot find HashLink Activity class");
 	}