From a7b391a5c8200ee63caba99d006ac5cf0c6d971f Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 23 Feb 2018 17:18:21 +0200 Subject: [PATCH] changed name of nameDrawable to resName --- .../net/osmand/plus/transport/TransportStopType.java | 10 +++++----- .../src/net/osmand/plus/views/TransportStopsLayer.java | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/transport/TransportStopType.java b/OsmAnd/src/net/osmand/plus/transport/TransportStopType.java index 53e80cd5ea..53c26df975 100644 --- a/OsmAnd/src/net/osmand/plus/transport/TransportStopType.java +++ b/OsmAnd/src/net/osmand/plus/transport/TransportStopType.java @@ -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() { diff --git a/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java b/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java index 64607905b6..831df51025 100644 --- a/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/TransportStopsLayer.java @@ -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); }