From 18a3179df9e15d15083c125f4051f58722402bce Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 18 Jul 2013 01:16:42 +0200 Subject: [PATCH] Don't show wiki in free version --- OsmAnd/src/net/osmand/plus/download/IndexItemCategory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/IndexItemCategory.java b/OsmAnd/src/net/osmand/plus/download/IndexItemCategory.java index 1b14322176..2a9023eaeb 100644 --- a/OsmAnd/src/net/osmand/plus/download/IndexItemCategory.java +++ b/OsmAnd/src/net/osmand/plus/download/IndexItemCategory.java @@ -9,6 +9,7 @@ import java.util.TreeMap; import net.osmand.plus.ClientContext; import net.osmand.plus.R; +import net.osmand.plus.Version; public class IndexItemCategory implements Comparable { public final String name; @@ -26,6 +27,7 @@ public class IndexItemCategory implements Comparable { } public static List categorizeIndexItems(ClientContext ctx, Collection indexItems) { + boolean skipWiki = Version.isFreeVersion(ctx); final Map cats = new TreeMap(); for (IndexItem i : indexItems) { int nameId = R.string.index_name_other; @@ -76,6 +78,9 @@ public class IndexItemCategory implements Comparable { nameId = R.string.index_name_oceania; order = 70; } else if (lc.contains("_wiki_")) { + if(skipWiki) { + continue; + } nameId = R.string.index_name_wiki; order = 10; }