Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-12-01 16:55:31 +0300
committerIlya Zverev <zverik@textual.ru>2016-12-01 18:48:44 +0300
commit1e7b4269714de433bbc3694f45eaac968f69ee95 (patch)
tree9ed78f4b25c076280fc813ec471417f3b977bcf8 /indexer
parent961d4749e3a622b5027af9fe53441e01741170ff (diff)
[banners] Make sponsored types always visible, add banner categories
Diffstat (limited to 'indexer')
-rw-r--r--indexer/feature_visibility.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index 75790733e0..20adbd8853 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -214,6 +214,7 @@ namespace
static const uint32_t hwtag = classif().GetTypeByPath({ "hwtag" });
static const uint32_t psurface = classif().GetTypeByPath({ "psurface" });
static const uint32_t wheelchair = classif().GetTypeByPath({ "wheelchair" });
+ static const uint32_t sponsored = classif().GetTypeByPath({ "sponsored" });
// Caching type length to exclude generic [wheelchair].
uint8_t const typeLength = ftype::GetLevel(type);
@@ -236,6 +237,9 @@ namespace
if (wheelchair == type && typeLength == 2)
return true;
+ if (sponsored == type)
+ return true;
+
return false;
}
}