refactored lastIndexOf
This commit is contained in:
parent
dadf0c295d
commit
fa6f3e6211
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue