mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[ion/simulator/android] Fix method signature
Change-Id: I7ac83b8b3a4eca82313e9de3e3d9f5a76ff92951
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user