replace default icon
This commit is contained in:
parent
2e7947589c
commit
0300b0b612
3 changed files with 3 additions and 3 deletions
|
@ -298,7 +298,7 @@ public class QuickSearchCustomPoiFragment extends DialogFragment {
|
|||
UiUtilities ic = app.getUIUtilities();
|
||||
int iconId = getIconId(category);
|
||||
if (iconId == 0) {
|
||||
iconId = R.drawable.mx_user_defined;
|
||||
iconId = R.drawable.mx_special_custom_category;
|
||||
}
|
||||
if (categorySelected) {
|
||||
iconView.setImageDrawable(ic.getIcon(iconId, R.color.osmand_orange));
|
||||
|
|
|
@ -103,7 +103,7 @@ public class SubCategoriesAdapter extends ArrayAdapter<PoiType> {
|
|||
if (iconRes == 0) {
|
||||
iconRes = RenderingIcons.getBigIconResourceId(poiType.getOsmTag() + "_" + poiType.getOsmValue());
|
||||
if (iconRes == 0) {
|
||||
iconRes = R.drawable.mx_user_defined;
|
||||
iconRes = R.drawable.mx_special_custom_category;
|
||||
}
|
||||
}
|
||||
icon.setImageDrawable(uiUtilities.getIcon(iconRes, tintIconColorRes));
|
||||
|
|
|
@ -331,7 +331,7 @@ public class QuickSearchListItem {
|
|||
} else if (searchResult.object instanceof CustomSearchPoiFilter) {
|
||||
CustomSearchPoiFilter searchPoiFilter = (CustomSearchPoiFilter) searchResult.object;
|
||||
PoiUIFilter filter = app.getPoiFilters().getFilterById(searchPoiFilter.getFilterId());
|
||||
iconId = R.drawable.mx_user_defined;
|
||||
iconId = R.drawable.mx_special_custom_category;
|
||||
if (filter != null) {
|
||||
Map<PoiCategory, LinkedHashSet<String>> acceptedTypes = filter.getAcceptedTypes();
|
||||
List<PoiCategory> categories = new ArrayList<>(acceptedTypes.keySet());
|
||||
|
|
Loading…
Reference in a new issue