From 97cfc302448d85b23726df787a4c523c26d20414 Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Mon, 3 Aug 2015 16:22:13 +0300 Subject: [PATCH] Android UI integration. --- .../com/mapswithme/maps/data/RoutingResultCodesProcessor.java | 1 + map/framework.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/data/RoutingResultCodesProcessor.java b/android/src/com/mapswithme/maps/data/RoutingResultCodesProcessor.java index 0390a2dbe5..ccb3727037 100644 --- a/android/src/com/mapswithme/maps/data/RoutingResultCodesProcessor.java +++ b/android/src/com/mapswithme/maps/data/RoutingResultCodesProcessor.java @@ -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) { diff --git a/map/framework.cpp b/map/framework.cpp index bf580c10a3..162dc4ebc7 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -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);