Merge pull request #23021 from dumitru-stama/fix_android_modules

Fixed initialization of android modules
This commit is contained in:
Rémi Verschelde 2018-10-15 14:23:03 +02:00 committed by GitHub
commit 05f1a56037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -883,6 +883,8 @@ static void _initialize_java_modules() {
ERR_EXPLAIN("Couldn't find proper initialize function 'public static Godot.SingletonBase Class::initialize(Activity p_activity)' initializer for singleton class: " + m);
ERR_CONTINUE(!initialize);
}
jobject obj = env->CallStaticObjectMethod(singletonClass, initialize, _godot_instance);
env->NewGlobalRef(obj);
}
}
}