From fa8fa3d900ef24323c9594549f58217de420c5d9 Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 5 Mar 2018 15:17:39 +0200 Subject: [PATCH] changed name of method --- .../osmand/plus/mapcontextmenu/TransportStopRouteAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/TransportStopRouteAdapter.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/TransportStopRouteAdapter.java index d8b3085845..55ff9b3fa2 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/TransportStopRouteAdapter.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/TransportStopRouteAdapter.java @@ -41,7 +41,7 @@ public class TransportStopRouteAdapter extends ArrayAdapter TransportStopRoute transportStopRoute = getItem(position); if (transportStopRoute != null) { TextView transportStopRouteTextView = (TextView) convertView.findViewById(R.id.transport_stop_route_text); - transportStopRouteTextView.setText(getRouteRefSubstring(transportStopRoute.route.getRef())); + transportStopRouteTextView.setText(getAdjustedRouteRef(transportStopRoute.route.getRef())); GradientDrawable gradientDrawableBg = (GradientDrawable) transportStopRouteTextView.getBackground(); gradientDrawableBg.setColor(transportStopRoute.getColor(app, nightMode)); } @@ -58,7 +58,7 @@ public class TransportStopRouteAdapter extends ArrayAdapter return convertView; } - private String getRouteRefSubstring(String ref) { + private String getAdjustedRouteRef(String ref) { if (ref.contains(":")) { ref = ref.substring(0, ref.lastIndexOf(':')); }