iOS build fix.

This commit is contained in:
Dmitry Yunitsky 2015-03-03 19:59:02 +03:00 committed by Alex Zolotarev
parent d09b668abb
commit 418ef1202f

View file

@ -740,11 +740,11 @@
layout.DownloadMap(idx, static_cast<TMapOptions>(opt));
}
});
f.SetRouteBuildingListener([self, &f](bool isSuccess, string const & message, bool openDownloader)
f.SetRouteBuildingListener([self, &f](routing::IRouter::ResultCode code, vector<storage::TIndex> const & absentCountries)
{
[self.containerView.placePage showBuildingRoutingActivity:NO];
if (isSuccess)
if (code == routing::IRouter::ResultCode::NoError)
{
f.GetBalloonManager().RemovePin();
f.GetBalloonManager().Dismiss();
@ -772,10 +772,11 @@
}
else
{
if (openDownloader)
[self showDownloaderDialogWithMessageID:message];
else
[self showDialogWithMessageID:message];
// TODO
// if (openDownloader)
// [self showDownloaderDialogWithMessageID:message];
// else
// [self showDialogWithMessageID:message];
}
});
}