summaryrefslogtreecommitdiffstats
path: root/platform/android/java_class_wrapper.cpp
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2020-06-15 00:46:13 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2020-06-25 19:52:40 -0700
commit175d43738ac58afcf2d0531177eefeb260c4f296 (patch)
treee0ba015ce108a5fa239688bfd4923c2a93e78f59 /platform/android/java_class_wrapper.cpp
parent23f7f86914da0ee1423d49db7e549a5f50fb3cdc (diff)
downloadredot-engine-175d43738ac58afcf2d0531177eefeb260c4f296.tar.gz
Enable the ability to use Godot as a subview within an Android app
Diffstat (limited to 'platform/android/java_class_wrapper.cpp')
-rw-r--r--platform/android/java_class_wrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/java_class_wrapper.cpp b/platform/android/java_class_wrapper.cpp
index 39de3cb642..9b44ac4b41 100644
--- a/platform/android/java_class_wrapper.cpp
+++ b/platform/android/java_class_wrapper.cpp
@@ -1150,7 +1150,7 @@ JavaClassWrapper::JavaClassWrapper(jobject p_activity) {
JNIEnv *env = ThreadAndroid::get_env();
- jclass activityClass = env->FindClass("org/godotengine/godot/Godot");
+ jclass activityClass = env->FindClass("android/app/Activity");
jmethodID getClassLoader = env->GetMethodID(activityClass, "getClassLoader", "()Ljava/lang/ClassLoader;");
classLoader = env->CallObjectMethod(p_activity, getClassLoader);
classLoader = (jclass)env->NewGlobalRef(classLoader);