Replace - with space
This commit is contained in:
parent
0598389eb5
commit
ae8f839047
1 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue