diff options
Diffstat (limited to 'android/jni/com/mapswithme/maps/MapManager.cpp')
-rw-r--r-- | android/jni/com/mapswithme/maps/MapManager.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/android/jni/com/mapswithme/maps/MapManager.cpp b/android/jni/com/mapswithme/maps/MapManager.cpp index e23998519a..99091db254 100644 --- a/android/jni/com/mapswithme/maps/MapManager.cpp +++ b/android/jni/com/mapswithme/maps/MapManager.cpp @@ -448,7 +448,13 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeFindCountry(JNIEnv * env, j JNIEXPORT jboolean JNICALL Java_com_mapswithme_maps_downloader_MapManager_nativeIsDownloading(JNIEnv * env, jclass clazz) { - return GetStorage().IsDownloadInProgress(); + return static_cast<jboolean>(GetStorage().IsDownloadInProgress()); +} + +JNIEXPORT jstring JNICALL +Java_com_mapswithme_maps_downloader_MapManager_nativeGetCurrentDownloadingCountryId(JNIEnv * env, jclass) +{ + return jni::ToJavaString(env, GetStorage().GetCurrentDownloadingCountryId()); } static void StartBatchingCallbacks() |