[new downloader] Fixing Android part after changing in Storage interface.

This commit is contained in:
Vladimir Byko-Ianko 2016-02-29 10:07:19 +03:00 committed by Sergey Yershov
parent a09b9a2a28
commit 1743e52bfc
2 changed files with 7 additions and 7 deletions

View file

@ -319,10 +319,10 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeDownload(JNIEnv * env, jcla
}
// static boolean nativeRetry(String root);
JNIEXPORT jboolean JNICALL
JNIEXPORT void JNICALL
Java_com_mapswithme_maps_downloader_MapManager_nativeRetry(JNIEnv * env, jclass clazz, jstring root)
{
return GetStorage().RetryDownloadNode(jni::ToNativeString(env, root));
GetStorage().RetryDownloadNode(jni::ToNativeString(env, root));
}
// static boolean nativeUpdate(String root);
@ -334,11 +334,11 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeUpdate(JNIEnv * env, jclass
return true;
}
// static boolean nativeCancel(String root);
JNIEXPORT jboolean JNICALL
// static void nativeCancel(String root);
JNIEXPORT void JNICALL
Java_com_mapswithme_maps_downloader_MapManager_nativeCancel(JNIEnv * env, jclass clazz, jstring root)
{
return GetStorage().CancelDownloadNode(jni::ToNativeString(env, root));
GetStorage().CancelDownloadNode(jni::ToNativeString(env, root));
}
// static void nativeDelete(String root);

View file

@ -115,7 +115,7 @@ public final class MapManager
/**
* Enqueues failed items under given {@code root} node in downloader.
*/
public static native boolean nativeRetry(String root);
public static native void nativeRetry(String root);
/**
* Enqueues given {@code root} node with its children in downloader.
@ -125,7 +125,7 @@ public final class MapManager
/**
* Removes given currently downloading {@code root} node and its children from downloader.
*/
public static native boolean nativeCancel(String root);
public static native void nativeCancel(String root);
/**
* Deletes given installed {@code root} node with its children.