diff options
author | dumitru-stama <dumitru.stama@gmail.com> | 2018-10-14 17:07:09 -0700 |
---|---|---|
committer | dumitru-stama <dumitru.stama@gmail.com> | 2018-10-14 17:32:01 -0700 |
commit | 4c9eb86cbf6e28a86d8691703b7e37d02686833e (patch) | |
tree | e19eb04b93d818609840b6a42c5151a55ef91087 | |
parent | b95f0e61e0e5678eeb9224a012b28479d7f0af58 (diff) |
Fixed initialization of android modules
-rw-r--r-- | platform/android/java_glue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/java_glue.cpp b/platform/android/java_glue.cpp index ad8f21785d..07e4048c12 100644 --- a/platform/android/java_glue.cpp +++ b/platform/android/java_glue.cpp @@ -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); } } } |