fix wrong signature

This commit is contained in:
kotori0 2022-02-07 02:49:38 +08:00 committed by LoveSy
parent 2582eb3654
commit d3518d18d6
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
#include "obfuscation.h"
bool obfuscate_enabled(JNIEnv* env, jclass obfuscation_manager) {
auto method_enabled = JNI_GetMethodID(env, obfuscation_manager, "enabled", "()Z");
auto method_enabled = JNI_GetStaticMethodID(env, obfuscation_manager, "enabled", "()Z");
auto result = JNI_CallStaticBooleanMethod(env, obfuscation_manager, method_enabled);
return result;
}