From f55e6bfab1614ce8d21d284a80e5ea42c4437fc9 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sat, 17 Dec 2011 17:32:38 +0300 Subject: [PATCH] Search index is not generated after downloading for apps which doesn't need it (currently iOS Lite version) --- storage/storage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/storage/storage.cpp b/storage/storage.cpp index 792f11b270..fde3caafdc 100644 --- a/storage/storage.cpp +++ b/storage/storage.cpp @@ -355,7 +355,11 @@ namespace storage if (i != string::npos) file = file.substr(i+1); - GetPlatform().RunAsync(bind(&Storage::GenerateSearchIndex, this, cref(file))); + // Generate search index if it's supported in this build + if (GetPlatform().IsFeatureSupported("search")) + GetPlatform().RunAsync(bind(&Storage::GenerateSearchIndex, this, cref(file))); + else // Or simply activate downloaded map + UpdateAfterSearchIndex(file); } m_request.reset(); DownloadNextCountryFromQueue();