Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'android/jni/com/mapswithme/core/jni_helper.cpp')
-rw-r--r--android/jni/com/mapswithme/core/jni_helper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/jni/com/mapswithme/core/jni_helper.cpp b/android/jni/com/mapswithme/core/jni_helper.cpp
index 5bf37b0ae0..0524197558 100644
--- a/android/jni/com/mapswithme/core/jni_helper.cpp
+++ b/android/jni/com/mapswithme/core/jni_helper.cpp
@@ -16,6 +16,7 @@ extern JavaVM * GetJVM()
// caching is necessary to create class from native threads
jclass g_mapObjectClazz;
jclass g_bookmarkClazz;
+jclass g_myTrackerClazz;
extern "C"
{
@@ -29,6 +30,7 @@ JNI_OnLoad(JavaVM * jvm, void *)
JNIEnv * env = jni::GetEnv();
g_mapObjectClazz = jni::GetGlobalClassRef(env, "com/mapswithme/maps/bookmarks/data/MapObject");
g_bookmarkClazz = jni::GetGlobalClassRef(env, "com/mapswithme/maps/bookmarks/data/Bookmark");
+ g_myTrackerClazz = jni::GetGlobalClassRef(env, "com/my/tracker/MyTracker");
return JNI_VERSION_1_6;
}
@@ -40,6 +42,7 @@ JNI_OnUnload(JavaVM *, void *)
JNIEnv * env = jni::GetEnv();
env->DeleteGlobalRef(g_mapObjectClazz);
env->DeleteGlobalRef(g_bookmarkClazz);
+ env->DeleteGlobalRef(g_myTrackerClazz);
}
} // extern "C"