summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:46:22 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-02-19 12:46:22 +0200
commited3bc6d2b40cfd8eeb931a0608a1a298bf23df20 (patch)
tree157970beb577e895c4e325c546791ea80905b07c /src
parent05adfd9b3378a93d3f9a77e99bd1d780d860d24d (diff)
jvm-android: not unity bug
Diffstat (limited to 'src')
-rw-r--r--src/app.c2
-rw-r--r--src/libjvm-android.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/src/app.c b/src/app.c
index b3892d2..4e425d7 100644
--- a/src/app.c
+++ b/src/app.c
@@ -40,7 +40,7 @@ main(int argc, const char *argv[])
struct jvm jvm;
jvm_init(&jvm);
- const jobject context = jvm.native.AllocObject(&jvm.env, jvm.native.FindClass(&jvm.env, "android/content/context"));
+ const jobject context = jvm.native.AllocObject(&jvm.env, jvm.native.FindClass(&jvm.env, "android/content/Context"));
void* (*JNI_OnLoad)(void*, void*) = apkenv_android_dlsym(handle, "JNI_OnLoad");
assert(JNI_OnLoad);
diff --git a/src/libjvm-android.c b/src/libjvm-android.c
index ddf3be5..baaf614 100644
--- a/src/libjvm-android.c
+++ b/src/libjvm-android.c
@@ -7,11 +7,3 @@ android_content_Context_getPackageName(JNIEnv *env, jobject object, va_list args
assert(env && object);
return (*env)->NewStringUTF(env, "com.gnu.linux");
}
-
-jstring
-android_content_context_getPackageName(JNIEnv *env, jobject object, va_list args)
-{
- // Probably bug in unity, call to lowercase context class, but works due to case-insensitive filesystem.
- // <https://stackoverflow.com/questions/10890805/case-sensitivity-of-java-class-names>
- return android_content_Context_getPackageName(env, object, args);
-}