Update icons
This commit is contained in:
parent
7b6fffa18b
commit
4923107bf3
2 changed files with 5 additions and 5 deletions
|
@ -84,7 +84,7 @@ public class RenderingIcons {
|
|||
for (Field f : cl.getDeclaredFields()) {
|
||||
if (f.getName().startsWith("h_") || f.getName().startsWith("mm_")) {
|
||||
try {
|
||||
icons.put(f.getName().substring(2), f.getInt(null));
|
||||
icons.put(f.getName().substring(f.getName().startsWith("mm_")? 3 : 2), f.getInt(null));
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IllegalAccessException e) {
|
||||
|
|
|
@ -181,11 +181,11 @@ public class POIMapLayer extends OsmandMapLayer implements ContextMenuLayer.ICon
|
|||
canvas.drawCircle(x, y, r, pointAltUI);
|
||||
canvas.drawCircle(x, y, r, point);
|
||||
String id = null;
|
||||
if(RenderingIcons.containsIcon(o.getSubType())){
|
||||
id = o.getSubType();
|
||||
} else if (RenderingIcons.containsIcon(o.getType().getDefaultTag() + "_" + o.getSubType())) {
|
||||
if (RenderingIcons.containsIcon(o.getType().getDefaultTag() + "_" + o.getSubType())) {
|
||||
id = o.getType().getDefaultTag() + "_" + o.getSubType();
|
||||
}
|
||||
} else if(RenderingIcons.containsIcon(o.getSubType())){
|
||||
id = o.getSubType();
|
||||
}
|
||||
if(id != null){
|
||||
Bitmap bmp = RenderingIcons.getIcon(view.getContext(), id);
|
||||
if(bmp != null){
|
||||
|
|
Loading…
Reference in a new issue