changed name of nameDrawable to resName
This commit is contained in:
parent
485ff1077e
commit
a7b391a5c8
2 changed files with 6 additions and 6 deletions
|
@ -18,13 +18,13 @@ public enum TransportStopType {
|
|||
final int resId;
|
||||
final int topResId;
|
||||
final String renderAttr;
|
||||
final String nameDrawable;
|
||||
final String resName;
|
||||
|
||||
TransportStopType(int resId, int topResId, String renderAttr, String nameDrawable) {
|
||||
TransportStopType(int resId, int topResId, String renderAttr, String resName) {
|
||||
this.resId = resId;
|
||||
this.topResId = topResId;
|
||||
this.renderAttr = renderAttr;
|
||||
this.nameDrawable = nameDrawable;
|
||||
this.resName = resName;
|
||||
}
|
||||
|
||||
public int getResourceId() {
|
||||
|
@ -35,8 +35,8 @@ public enum TransportStopType {
|
|||
return topResId;
|
||||
}
|
||||
|
||||
public String getNameDrawable() {
|
||||
return nameDrawable;
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public String getRendeAttr() {
|
||||
|
|
|
@ -247,7 +247,7 @@ public class TransportStopsLayer extends OsmandMapLayer implements ContextMenuLa
|
|||
if (stopRoute != null) {
|
||||
TransportStopType type = TransportStopType.findType(stopRoute.route.getType());
|
||||
if (type != null) {
|
||||
Bitmap foregroundIcon = RenderingIcons.getIcon(mapActivity, type.getNameDrawable(), false);
|
||||
Bitmap foregroundIcon = RenderingIcons.getIcon(mapActivity, type.getResName(), false);
|
||||
canvas.drawBitmap(backgroundIcon, x - backgroundIconHalfWidth, y - backgroundIconHalfHeight, paintIcon);
|
||||
canvas.drawBitmap(foregroundIcon, x - foregroundIcon.getWidth() / 2, y - foregroundIcon.getHeight() / 2, paintWhiteIcon);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue