|
@ -42,6 +42,7 @@ jclass passphraseTypeClass = nullptr; |
|
|
namespace JNISync { |
|
|
namespace JNISync { |
|
|
JNIEnv* env() { |
|
|
JNIEnv* env() { |
|
|
JNIEnv *thread_env = nullptr; |
|
|
JNIEnv *thread_env = nullptr; |
|
|
|
|
|
Adapter::session.initialize(); |
|
|
int status = jvm->GetEnv(reinterpret_cast<void**>(&thread_env), JNI_VERSION_1_6); |
|
|
int status = jvm->GetEnv(reinterpret_cast<void**>(&thread_env), JNI_VERSION_1_6); |
|
|
if (status < 0) { |
|
|
if (status < 0) { |
|
|
#ifdef ANDROID |
|
|
#ifdef ANDROID |
|
|