From 2063c9442a5a1f7d330e539b9356a27168cbd81f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 15 May 2020 17:08:09 +0300 Subject: [PATCH] Replace icon for City and Village --- OsmAnd/res/drawable/ic_action_village.xml | 34 +++++++++++++++++++ .../search/listitems/QuickSearchListItem.java | 4 +-- .../sample1/search/QuickSearchListItem.java | 4 +-- 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 OsmAnd/res/drawable/ic_action_village.xml diff --git a/OsmAnd/res/drawable/ic_action_village.xml b/OsmAnd/res/drawable/ic_action_village.xml new file mode 100644 index 0000000000..dd841a5ba6 --- /dev/null +++ b/OsmAnd/res/drawable/ic_action_village.xml @@ -0,0 +1,34 @@ + + + + + + + + diff --git a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java index 9965f6a880..52ceef46e2 100644 --- a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java +++ b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java @@ -313,9 +313,9 @@ public class QuickSearchListItem { int iconId = -1; switch (searchResult.objectType) { case CITY: - return getIcon(app, R.drawable.ic_action_building_number); + return getIcon(app, R.drawable.ic_action_building2); case VILLAGE: - return getIcon(app, R.drawable.ic_action_home_dark); + return getIcon(app, R.drawable.ic_action_village); case POSTCODE: case STREET: return getIcon(app, R.drawable.ic_action_street_name); diff --git a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/search/QuickSearchListItem.java b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/search/QuickSearchListItem.java index 5de85a803d..0cc06035e1 100644 --- a/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/search/QuickSearchListItem.java +++ b/OsmAndCore-sample/src/net/osmand/core/samples/android/sample1/search/QuickSearchListItem.java @@ -253,9 +253,9 @@ public class QuickSearchListItem { int iconId; switch (searchResult.objectType) { case CITY: - return app.getIconsCache().getIcon("ic_action_building_number", R.color.osmand_orange); + return app.getIconsCache().getIcon("ic_action_building2", R.color.osmand_orange); case VILLAGE: - return app.getIconsCache().getIcon("ic_action_home_dark", R.color.osmand_orange); + return app.getIconsCache().getIcon("ic_action_village", R.color.osmand_orange); case POSTCODE: case STREET: return app.getIconsCache().getIcon("ic_action_street_name", R.color.osmand_orange);