summaryrefslogtreecommitdiff
path: root/platform/android/java_glue.cpp
diff options
context:
space:
mode:
authordumitru-stama <dumitru.stama@gmail.com>2018-10-14 17:07:09 -0700
committerdumitru-stama <dumitru.stama@gmail.com>2018-10-14 17:32:01 -0700
commit4c9eb86cbf6e28a86d8691703b7e37d02686833e (patch)
treee19eb04b93d818609840b6a42c5151a55ef91087 /platform/android/java_glue.cpp
parentb95f0e61e0e5678eeb9224a012b28479d7f0af58 (diff)
Fixed initialization of android modules
Diffstat (limited to 'platform/android/java_glue.cpp')
-rw-r--r--platform/android/java_glue.cpp2
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);
}
}
}