From 6f16f3291719b5239f97b0443f54fd6545d189e1 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 12 Apr 2017 10:06:44 +0300 Subject: [PATCH] Fix 0x1 resource id --- .../net/osmand/plus/search/listitems/QuickSearchListItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java index eb56672a68..2bc3c587cb 100644 --- a/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java +++ b/OsmAnd/src/net/osmand/plus/search/listitems/QuickSearchListItem.java @@ -386,7 +386,7 @@ public class QuickSearchListItem { iconId = app.getResources().getIdentifier(iconName, "drawable", app.getPackageName()); } } - if (iconId <= 0) { + if (iconId <= 1) { return app.getIconsCache().getIcon(SearchHistoryFragment.getItemIcon(entry.getName()), app.getSettings().isLightContent() ? R.color.osmand_orange : R.color.osmand_orange_dark); } else {