refactored lastIndexOf

This commit is contained in:
Chumva 2018-03-05 15:36:55 +02:00
parent 2391ff613c
commit dadf0c295d

View file

@ -60,8 +60,8 @@ public class TransportStopRouteAdapter extends ArrayAdapter<TransportStopRoute>
private String getAdjustedRouteRef(String ref) {
if (ref != null) {
int charPos=ref.lastIndexOf(':');
if (charPos!=-1) {
int charPos = ref.lastIndexOf(':');
if (charPos != -1) {
ref = ref.substring(0, charPos);
}
if (ref.length() > 4) {