Android UI integration.

This commit is contained in:
Lev Dragunov 2015-08-03 16:22:13 +03:00 committed by Alex Zolotarev
parent dc53fa63fb
commit 97cfc30244
2 changed files with 2 additions and 1 deletions

View file

@ -69,6 +69,7 @@ public class RoutingResultCodesProcessor
case DIFFERENT_MWM:
messages.add(resources.getString(R.string.routing_failed_cross_mwm_building));
break;
case FILE_TOO_OLD:
case ROUTE_NOT_FOUND:
if (missingCount == 0)
{

View file

@ -2114,7 +2114,7 @@ void Framework::BuildRoute(m2::PointD const & destination, uint32_t timeoutSec)
for (string const & name : route.GetAbsentCountries())
{
storage::TIndex fileIndex = m_storage.FindIndexByFile(name);
if (m_storage.GetLatestLocalFile(fileIndex))
if (m_storage.GetLatestLocalFile(fileIndex) && code != IRouter::FileTooOld)
absentRoutingIndexes.push_back(fileIndex);
else
absentCountries.push_back(fileIndex);