Replace - with space

This commit is contained in:
Victor Shcherb 2013-08-03 20:11:00 +02:00
parent 0598389eb5
commit ae8f839047

View file

@ -415,15 +415,16 @@ public class VoiceRouter {
} }
public String getSpeakableStreetName(RouteDirectionInfo i) { public String getSpeakableStreetName(RouteDirectionInfo i) {
String res = "";
if(i == null || !router.getSettings().SPEAK_STREET_NAMES.get()){ if(i == null || !router.getSettings().SPEAK_STREET_NAMES.get()){
return ""; return res;
} }
if(!Algorithms.isEmpty(i.getRef())) { if(!Algorithms.isEmpty(i.getRef())) {
return i.getRef(); res = i.getRef();
} else if(!Algorithms.isEmpty(i.getStreetName())) { } else if(!Algorithms.isEmpty(i.getStreetName())) {
return i.getStreetName(); res = i.getStreetName();
} }
return ""; return res.replace('-', ' ');
} }
private void playPrepareTurn(RouteDirectionInfo next, int dist) { private void playPrepareTurn(RouteDirectionInfo next, int dist) {