This commit is contained in:
Andrea Cavalli 2023-05-21 11:42:42 +02:00
parent d411414c9e
commit a54950dc93

View File

@ -168,8 +168,7 @@ static jint register_native(JavaVM *vm) {
#undef TD_OBJECT
td::jni::init_vars(env, API_PACKAGE_NAME);
td::td_api::Object::init_jni_vars(env, API_PACKAGE_NAME);
td::td_api::Function::init_jni_vars(env, API_PACKAGE_NAME);
td::jni::set_package_name(API_PACKAGE_NAME);
return JAVA_VERSION;
}