refactored lastIndexOf

This commit is contained in:
Chumva 2018-03-05 15:39:07 +02:00
parent dadf0c295d
commit fa6f3e6211

View file

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