forked from organicmaps/organicmaps
Android and iOS build fix after changes in search::SearchParams and in Storage::DownloadNode().
This commit is contained in:
parent
8b881c3865
commit
ab603ec81c
5 changed files with 8 additions and 8 deletions
|
@ -231,11 +231,11 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeIsDownloading(JNIEnv * env,
|
|||
return GetStorage().IsDownloadInProgress();
|
||||
}
|
||||
|
||||
// static boolean nativeDownload(String root);
|
||||
JNIEXPORT jboolean JNICALL
|
||||
// static void nativeDownload(String root);
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_mapswithme_maps_downloader_MapManager_nativeDownload(JNIEnv * env, jclass clazz, jstring root)
|
||||
{
|
||||
return GetStorage().DownloadNode(jni::ToNativeString(env, root));
|
||||
GetStorage().DownloadNode(jni::ToNativeString(env, root));
|
||||
}
|
||||
|
||||
// static boolean nativeRetry(String root);
|
||||
|
|
|
@ -164,7 +164,7 @@ extern "C"
|
|||
params.SetForceSearch(force);
|
||||
if (hasPosition)
|
||||
params.SetPosition(lat, lon);
|
||||
params.m_callback = bind(&OnResults, _1, timestamp, false, hasPosition, lat, lon);
|
||||
params.m_onResults = bind(&OnResults, _1, timestamp, false, hasPosition, lat, lon);
|
||||
|
||||
bool const searchStarted = g_framework->NativeFramework()->Search(params);
|
||||
if (searchStarted)
|
||||
|
@ -184,7 +184,7 @@ extern "C"
|
|||
|
||||
if (isMapAndTable)
|
||||
{
|
||||
params.m_callback = bind(&OnResults, _1, timestamp, isMapAndTable,
|
||||
params.m_onResults = bind(&OnResults, _1, timestamp, isMapAndTable,
|
||||
false /* hasPosition */, 0, 0);
|
||||
if (g_framework->NativeFramework()->Search(params))
|
||||
g_queryTimestamp = timestamp;
|
||||
|
|
|
@ -90,7 +90,7 @@ public final class MapManager
|
|||
/**
|
||||
* Enqueues given {@code root} node and its children in downloader.
|
||||
*/
|
||||
public static native boolean nativeDownload(String root);
|
||||
public static native void nativeDownload(String root);
|
||||
|
||||
/**
|
||||
* Enqueues failed items under given {@code root} node in downloader.
|
||||
|
|
|
@ -94,7 +94,7 @@ LocationObserver>
|
|||
- (void)setupSearchParams
|
||||
{
|
||||
__weak auto weakSelf = self;
|
||||
searchParams.m_callback = ^(search::Results const & results)
|
||||
searchParams.m_onResults = ^(search::Results const & results)
|
||||
{
|
||||
__strong auto self = weakSelf;
|
||||
if (!self)
|
||||
|
|
|
@ -133,7 +133,7 @@ using namespace storage;
|
|||
{
|
||||
__weak auto weakSelf = self;
|
||||
m_searchParams.SetMode(search::Mode::World);
|
||||
m_searchParams.m_callback = ^(search::Results const & results)
|
||||
m_searchParams.m_onResults = ^(search::Results const & results)
|
||||
{
|
||||
__strong auto self = weakSelf;
|
||||
if (!self || results.IsEndMarker())
|
||||
|
|
Loading…
Add table
Reference in a new issue