refactored some code
This commit is contained in:
parent
9e334a0be3
commit
c4eec1267c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public class TransportStopRouteAdapter extends ArrayAdapter<TransportStopRoute>
|
|||
TextView transportStopRouteTextView = (TextView) convertView.findViewById(R.id.transport_stop_route_text);
|
||||
String routeNumber = transportStopRoute.route.getRef();
|
||||
if (routeNumber.length() > 4) {
|
||||
routeNumber = routeNumber.substring(0, Math.min(routeNumber.length(), 4));
|
||||
routeNumber = routeNumber.substring(0, 4);
|
||||
}
|
||||
if (routeNumber.contains(":")) {
|
||||
routeNumber = routeNumber.substring(0, routeNumber.lastIndexOf(':'));
|
||||
|
|
Loading…
Reference in a new issue