Change method to find type string
This commit is contained in:
parent
5b72747dbb
commit
a3d097b02a
1 changed files with 14 additions and 26 deletions
|
@ -70,48 +70,36 @@ public class TransportStopRoute {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTypeStrRes() {
|
public int getTypeStrRes() {
|
||||||
int typeResId = R.string.poi_filter_public_transport;
|
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case BUS:
|
case BUS:
|
||||||
typeResId = R.string.poi_route_bus_ref;
|
return R.string.poi_route_bus_ref;
|
||||||
break;
|
|
||||||
case TRAM:
|
case TRAM:
|
||||||
typeResId = R.string.poi_route_tram_ref;
|
return R.string.poi_route_tram_ref;
|
||||||
break;
|
|
||||||
case FERRY:
|
case FERRY:
|
||||||
typeResId = R.string.poi_route_ferry_ref;
|
return R.string.poi_route_ferry_ref;
|
||||||
break;
|
|
||||||
case TRAIN:
|
case TRAIN:
|
||||||
typeResId = R.string.poi_route_train_ref;
|
return R.string.poi_route_train_ref;
|
||||||
break;
|
|
||||||
case SHARE_TAXI:
|
case SHARE_TAXI:
|
||||||
typeResId = R.string.poi_route_share_taxi_ref;
|
return R.string.poi_route_share_taxi_ref;
|
||||||
break;
|
|
||||||
case FUNICULAR:
|
case FUNICULAR:
|
||||||
typeResId = R.string.poi_route_funicular_ref;
|
return R.string.poi_route_funicular_ref;
|
||||||
break;
|
|
||||||
case LIGHT_RAIL:
|
case LIGHT_RAIL:
|
||||||
typeResId = R.string.poi_route_light_rail_ref;
|
return R.string.poi_route_light_rail_ref;
|
||||||
break;
|
|
||||||
case MONORAIL:
|
case MONORAIL:
|
||||||
typeResId = R.string.poi_route_monorail_ref;
|
return R.string.poi_route_monorail_ref;
|
||||||
break;
|
|
||||||
case TROLLEYBUS:
|
case TROLLEYBUS:
|
||||||
typeResId = R.string.poi_route_trolleybus_ref;
|
return R.string.poi_route_trolleybus_ref;
|
||||||
break;
|
|
||||||
case RAILWAY:
|
case RAILWAY:
|
||||||
typeResId = R.string.poi_route_railway_ref;
|
return R.string.poi_route_railway_ref;
|
||||||
break;
|
|
||||||
case SUBWAY:
|
case SUBWAY:
|
||||||
typeResId = R.string.poi_route_subway_ref;
|
return R.string.poi_route_subway_ref;
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
typeResId = R.string.poi_filter_public_transport;
|
return R.string.poi_filter_public_transport;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return R.string.poi_filter_public_transport;
|
||||||
}
|
}
|
||||||
return typeResId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue