[ion/simulator/android] Fix method signature

Change-Id: I7ac83b8b3a4eca82313e9de3e3d9f5a76ff92951
This commit is contained in:
Hugo Saint-Vignes
2021-03-23 14:40:31 +01:00
parent 192794e299
commit 402858739e

View File

@@ -1,5 +1,6 @@
#include "../../../shared/platform.h"
#include <jni.h>
#include <assert.h>
namespace Ion {
namespace Simulator {
@@ -15,8 +16,9 @@ const char * languageCode() {
jmethodID j_methodId = env->GetMethodID(
j_class,
"retrieveLanguage",
"(V)Ljava/lang/String;"
"()Ljava/lang/String;"
);
assert(j_methodId != 0);
jstring j_language = static_cast<jstring>(env->CallObjectMethod(activity, j_methodId));
const char * language = env->GetStringUTFChars(j_language, nullptr);