Fix 0x1 resource id

This commit is contained in:
Alexey Kulish 2017-04-12 10:06:44 +03:00
parent 2cf480bb94
commit fd1a5dccc1

View file

@ -386,7 +386,7 @@ public class QuickSearchListItem {
iconId = app.getResources().getIdentifier(iconName, "drawable", app.getPackageName()); iconId = app.getResources().getIdentifier(iconName, "drawable", app.getPackageName());
} }
} }
if (iconId <= 0) { if (iconId <= 1) {
return app.getIconsCache().getIcon(SearchHistoryFragment.getItemIcon(entry.getName()), return app.getIconsCache().getIcon(SearchHistoryFragment.getItemIcon(entry.getName()),
app.getSettings().isLightContent() ? R.color.osmand_orange : R.color.osmand_orange_dark); app.getSettings().isLightContent() ? R.color.osmand_orange : R.color.osmand_orange_dark);
} else { } else {